aboutsummaryrefslogtreecommitdiffstats
path: root/include/x509cert.h
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 /include/x509cert.h
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 'include/x509cert.h')
-rw-r--r--include/x509cert.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/include/x509cert.h b/include/x509cert.h
index 0a6d0ec83..cc90b450e 100644
--- a/include/x509cert.h
+++ b/include/x509cert.h
@@ -25,8 +25,8 @@ class X509_Certificate : public X509_Object
X509_DN issuer_dn() const;
X509_DN subject_dn() const;
- std::string subject_info(const std::string&) const;
- std::string issuer_info(const std::string&) const;
+ std::vector<std::string> subject_info(const std::string&) const;
+ std::vector<std::string> issuer_info(const std::string&) const;
std::string start_time() const;
std::string end_time() const;
@@ -36,7 +36,7 @@ class X509_Certificate : public X509_Object
MemoryVector<byte> authority_key_id() const;
MemoryVector<byte> subject_key_id() const;
- bool self_signed() const;
+ bool is_self_signed() const { return self_signed; }
bool is_CA_cert() const;
u32bit path_limit() const;
@@ -49,15 +49,13 @@ class X509_Certificate : public X509_Object
X509_Certificate(DataSource&);
X509_Certificate(const std::string&);
private:
+ void force_decode();
friend class X509_CA;
X509_Certificate() {}
- void force_decode();
-
void handle_v3_extension(const Extension&);
- Data_Store info;
- std::multimap<std::string, std::string> subject, issuer;
- bool is_ca;
+ Data_Store subject, issuer;
+ bool self_signed, is_ca;
};
/*************************************************