From 3e76baa163880f59fc344dcff58fd48e526b4a39 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Tue, 19 Jun 2018 16:59:27 -0700 Subject: Introduce downloads.h/cpp --- toolsrc/include/vcpkg/base/downloads.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 toolsrc/include/vcpkg/base/downloads.h (limited to 'toolsrc/include') diff --git a/toolsrc/include/vcpkg/base/downloads.h b/toolsrc/include/vcpkg/base/downloads.h new file mode 100644 index 000000000..f30e865a6 --- /dev/null +++ b/toolsrc/include/vcpkg/base/downloads.h @@ -0,0 +1,16 @@ +#pragma once + +#include + +namespace vcpkg::Downloads +{ + void verify_downloaded_file_hash(const Files::Filesystem& fs, + const std::string& url, + const fs::path& path, + const std::string& sha512); + + void download_file(vcpkg::Files::Filesystem& fs, + const std::string& url, + const fs::path& download_path, + const std::string& sha512); +} -- cgit v1.2.3