diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2018-06-19 16:59:27 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2018-06-19 23:07:31 -0700 |
| commit | 3e76baa163880f59fc344dcff58fd48e526b4a39 (patch) | |
| tree | 682bfa6297b01df0351151509b96386d817976fa /toolsrc/include | |
| parent | 84d65840ab5a36dc095826496a8213ac2404a216 (diff) | |
| download | vcpkg-3e76baa163880f59fc344dcff58fd48e526b4a39.tar.gz vcpkg-3e76baa163880f59fc344dcff58fd48e526b4a39.zip | |
Introduce downloads.h/cpp
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg/base/downloads.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 <vcpkg/base/files.h>
+
+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);
+}
|
