diff options
Diffstat (limited to 'src/lib/x509/x509_dn_ub.cpp')
-rw-r--r-- | src/lib/x509/x509_dn_ub.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/x509/x509_dn_ub.cpp b/src/lib/x509/x509_dn_ub.cpp index 20c88d97e..cf8714320 100644 --- a/src/lib/x509/x509_dn_ub.cpp +++ b/src/lib/x509/x509_dn_ub.cpp @@ -1,7 +1,7 @@ /* * DN_UB maps: Upper bounds on the length of DN strings * -* This file was automatically generated by ./src/scripts/oids.py on 2017-12-20 +* This file was automatically generated by ./src/scripts/oids.py on 2017-12-23 * * All manual edits to this file will be lost. Edit the script * then regenerate this source file. @@ -9,10 +9,9 @@ * Botan is released under the Simplified BSD License (see license.txt) */ +#include <botan/x509_dn.h> #include <botan/asn1_oid.h> -#include <botan/x509_dn_ub.h> #include <map> -#include <stdint.h> namespace { /** @@ -42,7 +41,8 @@ static const std::map<Botan::OID, size_t> DN_UB = namespace Botan { -size_t lookup_ub(const OID& oid) +//static +size_t X509_DN::lookup_ub(const OID& oid) { auto ub_entry = DN_UB.find(oid); if(ub_entry != DN_UB.end()) @@ -51,7 +51,7 @@ size_t lookup_ub(const OID& oid) } else { - return SIZE_MAX; + return 0; } } } |