diff options
author | Jack Lloyd <[email protected]> | 2020-11-08 07:39:23 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2020-11-08 07:39:23 -0500 |
commit | 9b815079d96372aa31fdabe1c595e7b5927d5522 (patch) | |
tree | ee604ae107b3aac84c99f5debb070ae742dda947 | |
parent | e2d9d580a555a8beb8161f734c0d6026ac28a498 (diff) |
Remove extra data getters from X509 certificate
-rw-r--r-- | src/lib/x509/x509cert.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/lib/x509/x509cert.cpp b/src/lib/x509/x509cert.cpp index 195423e30..8c142a6a1 100644 --- a/src/lib/x509/x509cert.cpp +++ b/src/lib/x509/x509cert.cpp @@ -640,23 +640,6 @@ X509_Certificate::subject_info(const std::string& req) const if(subject_alt_name().has_field(req)) return subject_alt_name().get_attribute(req); - // These will be removed later: - if(req == "X509.Certificate.v2.key_id") - return {hex_encode(this->v2_subject_key_id())}; - if(req == "X509v3.SubjectKeyIdentifier") - return {hex_encode(this->subject_key_id())}; - if(req == "X509.Certificate.dn_bits") - return {hex_encode(this->raw_subject_dn())}; - if(req == "X509.Certificate.start") - return {not_before().to_string()}; - if(req == "X509.Certificate.end") - return {not_after().to_string()}; - - if(req == "X509.Certificate.version") - return {std::to_string(x509_version())}; - if(req == "X509.Certificate.serial") - return {hex_encode(serial_number())}; - return {}; } @@ -672,14 +655,6 @@ X509_Certificate::issuer_info(const std::string& req) const if(issuer_alt_name().has_field(req)) return issuer_alt_name().get_attribute(req); - // These will be removed later: - if(req == "X509.Certificate.v2.key_id") - return {hex_encode(this->v2_issuer_key_id())}; - if(req == "X509v3.AuthorityKeyIdentifier") - return {hex_encode(this->authority_key_id())}; - if(req == "X509.Certificate.dn_bits") - return {hex_encode(this->raw_issuer_dn())}; - return {}; } |