diff options
author | Jack Lloyd <[email protected]> | 2019-08-04 06:32:32 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-08-04 16:26:48 -0400 |
commit | b7434defb0769f1f06a7b55f5435ceb690856713 (patch) | |
tree | 6e4e86f22dc01b75db8a59ad86f8b7261791a840 /src/lib/x509/x509_ext.cpp | |
parent | 67fddcd63e065eaf8bafbb15f615cbf203a305bd (diff) |
Deprecate and replace OIDS::lookup
Diffstat (limited to 'src/lib/x509/x509_ext.cpp')
-rw-r--r-- | src/lib/x509/x509_ext.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/x509/x509_ext.cpp b/src/lib/x509/x509_ext.cpp index 9b938f4d3..cfcc7da59 100644 --- a/src/lib/x509/x509_ext.cpp +++ b/src/lib/x509/x509_ext.cpp @@ -786,7 +786,7 @@ std::vector<uint8_t> Authority_Information_Access::encode_inner() const DER_Encoder(output) .start_cons(SEQUENCE) .start_cons(SEQUENCE) - .encode(OIDS::lookup("PKIX.OCSP")) + .encode(OIDS::str2oid_or_throw("PKIX.OCSP")) .add_object(ASN1_Tag(6), CONTEXT_SPECIFIC, url.value()) .end_cons() .end_cons(); @@ -805,7 +805,7 @@ void Authority_Information_Access::decode_inner(const std::vector<uint8_t>& in) info.decode(oid); - if(oid == OIDS::lookup("PKIX.OCSP")) + if(oid == OIDS::str2oid_or_throw("PKIX.OCSP")) { BER_Object name = info.get_next_object(); @@ -815,7 +815,7 @@ void Authority_Information_Access::decode_inner(const std::vector<uint8_t>& in) } } - if(oid == OIDS::lookup("PKIX.CertificateAuthorityIssuers")) + if(oid == OIDS::str2oid_or_throw("PKIX.CertificateAuthorityIssuers")) { BER_Object name = info.get_next_object(); |