aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/x509.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2012-08-07 21:54:43 +0000
committerRob Austein <sra@hactrn.net>2012-08-07 21:54:43 +0000
commit0ffc84f40bf25c778e20d49be33eebab3c7612e5 (patch)
tree5c8697f03aeebe645f4d8c84274c9c96f5ceb243 /rpkid/rpki/x509.py
parent0d561ccb89555aae11482449dc8477c6cf4d0799 (diff)
Safe mapping functions for OIDs, now that we're using the same code to
deal with BPKI certificates with all the whacky distinguished name fields allowed by X.509, or at least by PKIX. See #279. svn path=/trunk/; revision=4621
Diffstat (limited to 'rpkid/rpki/x509.py')
-rw-r--r--rpkid/rpki/x509.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpkid/rpki/x509.py b/rpkid/rpki/x509.py
index 42b52f1d..92194a96 100644
--- a/rpkid/rpki/x509.py
+++ b/rpkid/rpki/x509.py
@@ -176,7 +176,7 @@ class X501DN(object):
raise TypeError("Don't know how to interpret %r as an X.501 DN" % (ini,), ini)
def __str__(self):
- return "".join("/" + "+".join("%s=%s" % (rpki.oids.oid2name[a[0]], a[1][1])
+ return "".join("/" + "+".join("%s=%s" % (rpki.oids.safe_oid2name(a[0]), a[1][1])
for a in rdn)
for rdn in self.dn)