From 14ce6b8765f47db4f2cc4ab4d2eff64486792e62 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 25 Aug 2016 14:00:33 +0100 Subject: 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. --- src/certificate_chain.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/certificate_chain.h') 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); -- cgit v1.2.3