From 67a0e8d70f0caf8b85e0cf2031333236b2a3dcdf Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 24 Jan 2016 14:46:19 +0200 Subject: Add checksum verification --- bpkg/fetch | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bpkg/fetch') diff --git a/bpkg/fetch b/bpkg/fetch index 18dd665..06c2d15 100644 --- a/bpkg/fetch +++ b/bpkg/fetch @@ -5,18 +5,27 @@ #ifndef BPKG_FETCH #define BPKG_FETCH +#include + #include #include #include + #include namespace bpkg { + class checksum_mismatch: public std::exception {}; + repository_manifests fetch_repositories (const dir_path&, bool ignore_unknown); + + // Verify the checksum and throw checksum_mismatch if it doesn't match. + // repository_manifests fetch_repositories (const common_options&, const repository_location&, + const string& sha256sum, bool ignore_unknown); package_manifests fetch_packages (const dir_path&, -- cgit v1.1