From 70635d3cbd95a2ee64aafa3f2236a33dec90a50a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 30 Mar 2017 15:27:57 +0300 Subject: Fix certificate info parsing for openssl 1.1.0e --- bpkg/auth.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpkg/auth.cxx b/bpkg/auth.cxx index da5b293..bafc321 100644 --- a/bpkg/auth.cxx +++ b/bpkg/auth.cxx @@ -292,7 +292,7 @@ namespace bpkg }; string s; - if (!get (s) || s != "subject= ") + if (!get (s) || s.compare (0, 8, "subject=") != 0) bad_cert ("no subject"); // Parse RDN (relative distinguished name). -- cgit v1.1