From 7ea82c5013ab3c3d44b4b85cf767559e7019854f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 12 Jul 2016 17:25:28 +0300 Subject: Add --cert-* rep-info command options --- bpkg/auth.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bpkg/auth.cxx') 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 + 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 ()); + } } -- cgit v1.1