diff options
author | Jack Lloyd <[email protected]> | 2018-03-06 07:04:17 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-06 07:04:17 -0500 |
commit | cdd93a156d249ba721e74ec52bc1c13afc9921b1 (patch) | |
tree | 4c191f938bd3ebbe3773a9e8c0894b7ca2c321e6 /src/lib | |
parent | ffb68f149f1c8b3905db96090e510181e35f668f (diff) |
Handle cert.subject_info("Email")
GH #1446
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/x509/x509cert.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/x509/x509cert.cpp b/src/lib/x509/x509cert.cpp index d47021247..7a49e479f 100644 --- a/src/lib/x509/x509cert.cpp +++ b/src/lib/x509/x509cert.cpp @@ -583,6 +583,9 @@ const AlternativeName& X509_Certificate::issuer_alt_name() const std::vector<std::string> X509_Certificate::subject_info(const std::string& req) const { + if(req == "Email") + return this->subject_info("RFC822"); + if(subject_dn().has_field(req)) return subject_dn().get_attribute(req); |