From 5d513688ae07d96910dd1eef83bdad4e9d780373 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 22 Apr 2021 21:57:13 +0300 Subject: Add support for linked configurations --- bpkg/auth.hxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bpkg/auth.hxx') diff --git a/bpkg/auth.hxx b/bpkg/auth.hxx index b5ae1ff..c95d1c8 100644 --- a/bpkg/auth.hxx +++ b/bpkg/auth.hxx @@ -26,9 +26,10 @@ namespace bpkg // 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. + // If the configuration is used and also the configuration database is + // specified, then assume the database is already opened with the + // transaction started and use that. Otherwise, open the database and start + // a new transaction. // // Note that one drawback of doing this as part of an existing transaction // is that if things go south and the transaction gets aborted, then all the @@ -38,6 +39,7 @@ namespace bpkg shared_ptr authenticate_certificate (const common_options&, const dir_path* configuration, + database*, const optional& cert_pem, const repository_location&, const optional& dependent_trust); -- cgit v1.1