From e8ea3a8ad7f1b64e6dc4386fa9190f4b635a1466 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sat, 3 Jun 2006 04:43:18 +0000 Subject: Change X509_Certificate::subject_info and issuer_info to return a vector of strings instead of a single string that combines the relevent fields. Change how X509_Certificate stores information. Renamed self_signed() to is_self_signed() --- src/x509stor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/x509stor.cpp') diff --git a/src/x509stor.cpp b/src/x509stor.cpp index ee89a5d97..d84fbe8b0 100644 --- a/src/x509stor.cpp +++ b/src/x509stor.cpp @@ -294,7 +294,7 @@ X509_Code X509_Store::construct_cert_chain(const X509_Certificate& end_cert, if(certs[parent].is_trusted()) break; - if(parent_cert.self_signed()) + if(parent_cert.is_self_signed()) return CANNOT_ESTABLISH_TRUST; if(parent_cert.path_limit() < indexes.size() - 1) @@ -481,7 +481,7 @@ void X509_Store::add_new_certstore(Certificate_Store* certstore) *************************************************/ void X509_Store::add_cert(const X509_Certificate& cert, bool trusted) { - if(trusted && !cert.self_signed()) + if(trusted && !cert.is_self_signed()) throw Invalid_Argument("X509_Store: Trusted certs must be self-signed"); if(find_cert(cert.subject_dn(), cert.subject_key_id()) == NO_CERT_FOUND) -- cgit v1.2.3