aboutsummaryrefslogtreecommitdiff
path: root/scripts/rpki/oids.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2007-11-13 20:34:54 +0000
committerRob Austein <sra@hactrn.net>2007-11-13 20:34:54 +0000
commit5116b1ee9fa01970c601da584c24f8b5d90de0a9 (patch)
treebae727f504a8616c43a61965eb558429a1e714b0 /scripts/rpki/oids.py
parent222dcc75375bed4627b1bb66c449cb78a2588771 (diff)
OID cleanup
svn path=/scripts/biz-certs/Bob-CA.srl; revision=1282
Diffstat (limited to 'scripts/rpki/oids.py')
-rw-r--r--scripts/rpki/oids.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/scripts/rpki/oids.py b/scripts/rpki/oids.py
new file mode 100644
index 00000000..6537ba9f
--- /dev/null
+++ b/scripts/rpki/oids.py
@@ -0,0 +1,34 @@
+# $Id$
+
+"""OID database."""
+
+## @var oid2name
+# Mapping table of OIDs to conventional string names.
+
+oid2name = {
+ (1, 2, 840, 113549, 1, 1, 11) : "sha256WithRSAEncryption",
+ (1, 2, 840, 113549, 1, 1, 12) : "sha384WithRSAEncryption",
+ (1, 2, 840, 113549, 1, 1, 13) : "sha512WithRSAEncryption",
+ (1, 3, 6, 1, 5, 5, 7, 1, 1) : "authorityInfoAccess",
+ (1, 3, 6, 1, 5, 5, 7, 1, 11) : "subjectInfoAccess",
+ (1, 3, 6, 1, 5, 5, 7, 1, 7) : "sbgp-ipAddrBlock",
+ (1, 3, 6, 1, 5, 5, 7, 1, 8) : "sbgp-autonomousSysNum",
+ (1, 3, 6, 1, 5, 5, 7, 14, 2) : "id-cp-ipAddr-asNumber",
+ (1, 3, 6, 1, 5, 5, 7, 48, 2) : "id-ad-caIssuers",
+ (1, 3, 6, 1, 5, 5, 7, 48, 5) : "id-ad-caRepository",
+ (1, 3, 6, 1, 5, 5, 7, 48, 9) : "id-ad-signedObjectRepository",
+ (1, 3, 6, 1, 5, 5, 7, 48, 10) : "id-ad-rpkiManifest",
+ (1, 3, 6, 1, 5, 5, 7, 48, 11) : "id-ad-signedObject",
+ (2, 5, 29, 14) : "subjectKeyIdentifier",
+ (2, 5, 29, 15) : "keyUsage",
+ (2, 5, 29, 19) : "basicConstraints",
+ (2, 5, 29, 31) : "cRLDistributionPoints",
+ (2, 5, 29, 32) : "certificatePolicies",
+ (2, 5, 29, 35) : "authorityKeyIdentifier",
+ (2, 5, 4, 3) : "commonName",
+}
+
+## @var name2oid
+# Mapping table of string names to OIDs
+
+name2oid = dict((v,k) for k,v in oid2name.items())