aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/cert/x509/x509cert.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/cert/x509/x509cert.h')
-rw-r--r--src/lib/cert/x509/x509cert.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/cert/x509/x509cert.h b/src/lib/cert/x509/x509cert.h
index d5784f427..e0568e7ad 100644
--- a/src/lib/cert/x509/x509cert.h
+++ b/src/lib/cert/x509/x509cert.h
@@ -178,6 +178,12 @@ class BOTAN_DLL X509_Certificate final : public X509_Object
std::vector<std::string> policies() const;
/**
+ * Get all extensions of this certificate indexed by oid.
+ * @return extension values and critical flag
+ */
+ std::map<OID, std::pair<std::vector<byte>, bool>> v3_extensions() const;
+
+ /**
* Return the listed address of an OCSP responder, or empty if not set
*/
std::string ocsp_responder() const;
@@ -240,6 +246,7 @@ class BOTAN_DLL X509_Certificate final : public X509_Object
Data_Store m_subject, m_issuer;
bool m_self_signed;
+ std::map<OID, std::pair<std::vector<byte>, bool>> m_v3_extensions;
};
/**