aboutsummaryrefslogtreecommitdiff
path: root/bpkg/auth.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-07-12 17:25:28 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-07-14 17:56:54 +0300
commit7ea82c5013ab3c3d44b4b85cf767559e7019854f (patch)
tree24369f953efa5b3aa6b8b44937150f195f8f23e0 /bpkg/auth.cxx
parentdb5ac510d317fc3d9c2c881257e8c6a25851ea1c (diff)
Add --cert-* rep-info command options
Diffstat (limited to 'bpkg/auth.cxx')
-rw-r--r--bpkg/auth.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/bpkg/auth.cxx b/bpkg/auth.cxx
index 673e3ec..c152834 100644
--- a/bpkg/auth.cxx
+++ b/bpkg/auth.cxx
@@ -844,4 +844,15 @@ namespace bpkg
throw failed ();
}
+
+ shared_ptr<certificate>
+ parse_certificate (const common_options& co,
+ const string& cert_pem,
+ const repository_location& rl)
+ {
+ return parse_cert (co,
+ real_fingerprint (co, cert_pem, rl),
+ cert_pem,
+ rl.canonical_name ());
+ }
}