aboutsummaryrefslogtreecommitdiff
path: root/bpkg/auth.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-05-02 20:02:09 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-05-03 17:34:27 +0300
commitd4e409e3ceb7eadd9cf94b1d1f99ac04fec570ee (patch)
tree837cc261b0a0fa38ec75950acc523b864cad31a0 /bpkg/auth.hxx
parent6cb3810952e4a29023bce6682608a1bee40ca910 (diff)
Add support for dependent repository trust
Diffstat (limited to 'bpkg/auth.hxx')
-rw-r--r--bpkg/auth.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/bpkg/auth.hxx b/bpkg/auth.hxx
index 90f60e4..8b9a871 100644
--- a/bpkg/auth.hxx
+++ b/bpkg/auth.hxx
@@ -22,6 +22,11 @@ namespace bpkg
// other values (including '.') are assumed to be valid configuration paths
// and will be diagnosed if that's not the case.
//
+ // If the dependent trust fingerprint is present then try to authenticate
+ // the certificate for use by the dependent prior to prompting the user.
+ // Note that if certificate is authenticated for such a use, then it is not
+ // persisted into the database.
+ //
// If the configuration is used, then check if we are already in transaction.
// If so, then assume the configuration database is already opened and use
// that. Otherwise, open the database and start a new transaction.
@@ -35,7 +40,8 @@ namespace bpkg
authenticate_certificate (const common_options&,
const dir_path* configuration,
const optional<string>& cert_pem,
- const repository_location&);
+ const repository_location&,
+ const optional<string>& dependent_trust);
// Authenticate a repository. First check that the certificate can be used
// to authenticate this repository by making sure their names match. Then