diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-04-14 17:59:24 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-05-04 20:47:45 +0300 |
commit | b13332c991ce2695626eaca367dd8208b174c9ca (patch) | |
tree | 809dc321b47d5ef9c72935637f94bf5b84ed640d /bpkg/fetch | |
parent | c9831f760a83e36a3a2ac84b1bd3f573e47ef195 (diff) |
Add support for repository authentication
Diffstat (limited to 'bpkg/fetch')
-rw-r--r-- | bpkg/fetch | 37 |
1 files changed, 20 insertions, 17 deletions
@@ -14,23 +14,26 @@ 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&, - bool ignore_unknown); - package_manifests fetch_packages (const common_options&, - const repository_location&, - bool ignore_unknown); + repository_manifests + fetch_repositories (const dir_path&, bool ignore_unknown); + + pair<repository_manifests, string/*checksum*/> + fetch_repositories (const common_options&, + const repository_location&, + bool ignore_unknown); + + package_manifests + fetch_packages (const dir_path&, bool ignore_unknown); + + pair<package_manifests, string/*checksum*/> + fetch_packages (const common_options&, + const repository_location&, + bool ignore_unknown); + + signature_manifest + fetch_signature (const common_options&, + const repository_location&, + bool ignore_unknown); path fetch_archive (const common_options&, |