aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/x509/x509cert.h
diff options
context:
space:
mode:
authorNuno Goncalves <[email protected]>2017-02-27 16:12:30 +0100
committerNuno Goncalves <[email protected]>2017-04-03 22:39:11 +0200
commitf7cf31ef5f8d9bc9c846415966566e307ec9510b (patch)
treecec463d5c9a443c300491bee75d70f901bbcf9b0 /src/lib/x509/x509cert.h
parentc760bbd4873ba48ce743ff036e5c2c9572fb3b4b (diff)
Add X509 issuer and subject DN hash methods
Signed-off-by: Nuno Goncalves <[email protected]>
Diffstat (limited to 'src/lib/x509/x509cert.h')
-rw-r--r--src/lib/x509/x509cert.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/x509/x509cert.h b/src/lib/x509/x509cert.h
index 1e95b5140..52b22d618 100644
--- a/src/lib/x509/x509cert.h
+++ b/src/lib/x509/x509cert.h
@@ -101,11 +101,21 @@ class BOTAN_DLL X509_Certificate : public X509_Object
std::vector<uint8_t> raw_issuer_dn() const;
/**
+ * SHA-256 of Raw issuer DN
+ */
+ std::vector<uint8_t> raw_issuer_dn_sha256() const;
+
+ /**
* Raw subject DN
*/
std::vector<uint8_t> raw_subject_dn() const;
/**
+ * SHA-256 of Raw subject DN
+ */
+ std::vector<uint8_t> raw_subject_dn_sha256() const;
+
+ /**
* Get the notBefore of the certificate.
* @return notBefore of the certificate
*/