aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/prov/pkcs11/p11_x509.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/prov/pkcs11/p11_x509.h')
-rw-r--r--src/lib/prov/pkcs11/p11_x509.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/prov/pkcs11/p11_x509.h b/src/lib/prov/pkcs11/p11_x509.h
index ed084e9c1..d3eafbe35 100644
--- a/src/lib/prov/pkcs11/p11_x509.h
+++ b/src/lib/prov/pkcs11/p11_x509.h
@@ -31,6 +31,10 @@ class BOTAN_PUBLIC_API(2,0) X509_CertificateProperties final : public Certificat
*/
X509_CertificateProperties(const std::vector<uint8_t>& subject, const std::vector<uint8_t>& value);
+ X509_CertificateProperties(const X509_Certificate& cert) :
+ X509_CertificateProperties(cert.raw_subject_dn(), cert.BER_encode())
+ {}
+
/// @param id key identifier for public/private key pair
inline void set_id(const std::vector<uint8_t>& id)
{