From 0ffc84f40bf25c778e20d49be33eebab3c7612e5 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Tue, 7 Aug 2012 21:54:43 +0000 Subject: 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 --- rpkid/rpki/x509.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpkid/rpki/x509.py') 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) -- cgit v1.2.3