diff options
author | Christopher Bläsius <[email protected]> | 2016-02-29 17:16:54 +0100 |
---|---|---|
committer | Christopher Bläsius <[email protected]> | 2016-02-29 17:16:54 +0100 |
commit | 6ab73e03710a93dbef18d65a84fbe1d702b7d795 (patch) | |
tree | 86d785155f402eb8036b9f3de663c878334bad8a /src/lib/cert/x509/x509_ext.h | |
parent | 0a9505a067313e0e1b9099873642e07ad9fee52f (diff) |
+added fields for custom x509 extensions
+Extensions now uses std::unique_ptr
Diffstat (limited to 'src/lib/cert/x509/x509_ext.h')
-rw-r--r-- | src/lib/cert/x509/x509_ext.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/cert/x509/x509_ext.h b/src/lib/cert/x509/x509_ext.h index e9e718014..28fdbd57a 100644 --- a/src/lib/cert/x509/x509_ext.h +++ b/src/lib/cert/x509/x509_ext.h @@ -67,16 +67,18 @@ class BOTAN_DLL Extensions : public ASN1_Object void add(Certificate_Extension* extn, bool critical = false); + std::map<OID, std::pair<std::vector<byte>, bool>> extensions_raw() const; + Extensions& operator=(const Extensions&); Extensions(const Extensions&); Extensions(bool st = true) : m_throw_on_unknown_critical(st) {} - ~Extensions(); private: static Certificate_Extension* get_extension(const OID&); - std::vector<std::pair<Certificate_Extension*, bool> > m_extensions; + std::vector<std::pair<std::unique_ptr<Certificate_Extension>, bool>> m_extensions; bool m_throw_on_unknown_critical; + std::map<OID, std::pair<std::vector<byte>, bool>> m_extensions_raw; }; namespace Cert_Extension { |