summaryrefslogtreecommitdiff
path: root/src/certificate_chain.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-25 14:00:33 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-25 14:00:33 +0100
commit14ce6b8765f47db4f2cc4ab4d2eff64486792e62 (patch)
tree7274c9d4b633964c4f54bbe67ba6bd2ca0dfc0a8 /src/certificate_chain.h
parent04def4c193777d7a6cbd306d0a3ba3944335e444 (diff)
Allow reading of certificate chains from strings.
This also makes the Certificate constructor throw if it finds extra stuff after a certificate it is loading.
Diffstat (limited to 'src/certificate_chain.h')
-rw-r--r--src/certificate_chain.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/certificate_chain.h b/src/certificate_chain.h
index ca259c08..9d7ab47c 100644
--- a/src/certificate_chain.h
+++ b/src/certificate_chain.h
@@ -74,6 +74,8 @@ public:
std::string leaf_common_name = "CS.smpte-430-2.LEAF.NOT_FOR_PRODUCTION"
);
+ explicit CertificateChain (std::string);
+
void add (Certificate c);
void remove (Certificate c);
void remove (int);