aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-03-30 15:27:57 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-03-30 15:27:57 +0300
commit70635d3cbd95a2ee64aafa3f2236a33dec90a50a (patch)
treec71e68c48a2c5276e002cb4e63b65db72fa61df8
parent1e866bec7499330d54d3a79dc0ac8e63dd920763 (diff)
Fix certificate info parsing for openssl 1.1.0e
-rw-r--r--bpkg/auth.cxx2
1 files changed, 1 insertions, 1 deletions
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).