aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/oids.py
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-23 10:54:46 -0500
committerJack Lloyd <[email protected]>2017-12-23 10:54:46 -0500
commit4f60801da0a0f94a69b80c8e1d9ab7dc4ce2f224 (patch)
tree7af066d89eac7592fa88f8ecbdbf96377bf929c8 /src/scripts/oids.py
parent726e54725110bc7ef2bf115731074dd11bd229ec (diff)
Move DN upper bound function to X509_DN static function
Avoids another public header, and it just makes sense that it be declared there.
Diffstat (limited to 'src/scripts/oids.py')
-rwxr-xr-xsrc/scripts/oids.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scripts/oids.py b/src/scripts/oids.py
index a307d579b..1a162e732 100755
--- a/src/scripts/oids.py
+++ b/src/scripts/oids.py
@@ -156,10 +156,9 @@ def format_dn_ub_as_map(dn_ub, oid2str):
* 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 {
/**
@@ -176,7 +175,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())
@@ -185,7 +185,7 @@ size_t lookup_ub(const OID& oid)
}
else
{
- return SIZE_MAX;
+ return 0;
}
}
}