diff options
author | Jack Lloyd <[email protected]> | 2016-11-03 12:30:29 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-03 12:30:29 -0400 |
commit | 806a2d4e415fcabcd40ac7791cafc03be5a89501 (patch) | |
tree | 0736de2a3002d69b4c0262f391f4aa89cebfa27b /src/lib/x509/x509_ext.cpp | |
parent | a5c5a2a0737c7a6fc529d2d4c4c8b7524cef0f4c (diff) | |
parent | 62e55f484a7a03e2532875696eb2479a577878e9 (diff) |
Merge GH #706 Remove ability to add OIDs at runtime. Remove OID lock
Diffstat (limited to 'src/lib/x509/x509_ext.cpp')
-rw-r--r-- | src/lib/x509/x509_ext.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/x509/x509_ext.cpp b/src/lib/x509/x509_ext.cpp index 23340f784..c22e9ebcb 100644 --- a/src/lib/x509/x509_ext.cpp +++ b/src/lib/x509/x509_ext.cpp @@ -25,8 +25,7 @@ namespace Botan { Certificate_Extension* Extensions::get_extension(const OID& oid, bool critical) { #define X509_EXTENSION(NAME, TYPE) \ - if(OIDS::name_of(oid, NAME)) \ - return new Cert_Extension::TYPE(); + if(oid == OIDS::lookup(NAME)) { return new Cert_Extension::TYPE(); } X509_EXTENSION("X509v3.KeyUsage", Key_Usage); X509_EXTENSION("X509v3.BasicConstraints", Basic_Constraints); |