From 5a007a74529766b5b27f8e054d4fad79172d2d5c Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 29 Jan 2014 03:33:37 +0000 Subject: Clean up OID database. Would have done this years ago, had I understood how the globals() function works. svn path=/branches/tk671/; revision=5652 --- rpkid/rpki/irdb/zookeeper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpkid/rpki/irdb/zookeeper.py') diff --git a/rpkid/rpki/irdb/zookeeper.py b/rpkid/rpki/irdb/zookeeper.py index d2bd0c75..6c7d2206 100644 --- a/rpkid/rpki/irdb/zookeeper.py +++ b/rpkid/rpki/irdb/zookeeper.py @@ -1646,7 +1646,7 @@ class Zookeeper(object): raise rpki.exceptions.BadX510DN("Subject name doesn't match router profile: %s" % pkcs10.getSubject()) eku = pkcs10.getEKU() - if eku is None or rpki.oids.name2oid["id-kp-bgpsec-router"] not in eku: + if eku is None or rpki.oids.id_kp_bgpsec_router not in eku: raise rpki.exceptions.WrongEKU("Router certificate EKU not present in request") raise NotImplementedError, "Not finished" -- cgit v1.2.3