12#include <botan/pkix_types.h>
14#include <botan/asn1_obj.h>
27const std::map<OID, size_t> DN_UB = {
28 {OID({2, 5, 4, 10}), 64},
29 {OID({2, 5, 4, 11}), 64},
30 {OID({2, 5, 4, 12}), 64},
31 {OID({2, 5, 4, 3}), 64},
32 {OID({2, 5, 4, 4}), 40},
33 {OID({2, 5, 4, 42}), 32768},
34 {OID({2, 5, 4, 43}), 32768},
35 {OID({2, 5, 4, 44}), 32768},
36 {OID({2, 5, 4, 46}), 64},
37 {OID({2, 5, 4, 5}), 64},
38 {OID({2, 5, 4, 6}), 3},
39 {OID({2, 5, 4, 65}), 128},
40 {OID({2, 5, 4, 7}), 128},
41 {OID({2, 5, 4, 8}), 128},
42 {OID({2, 5, 4, 9}), 128}
49 auto ub_entry = DN_UB.find(oid);
50 if(ub_entry != DN_UB.end()) {
51 return ub_entry->second;
static size_t lookup_ub(const OID &oid)