aboutsummaryrefslogtreecommitdiffstats
path: root/src/x509stor.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-06-03 04:43:18 +0000
committerlloyd <[email protected]>2006-06-03 04:43:18 +0000
commite8ea3a8ad7f1b64e6dc4386fa9190f4b635a1466 (patch)
treea4e22fa6d1faac9eed74df03b451333468715621 /src/x509stor.cpp
parent99043d201905328e9297e9144673daaeafe295c8 (diff)
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()
Diffstat (limited to 'src/x509stor.cpp')
-rw-r--r--src/x509stor.cpp4
1 files changed, 2 insertions, 2 deletions
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)