00001 """
00002 OID database.
00003
00004 $Id: oids.py 2424 2009-05-11 06:37:32Z sra $
00005
00006 Copyright (C) 2007--2008 American Registry for Internet Numbers ("ARIN")
00007
00008 Permission to use, copy, modify, and distribute this software for any
00009 purpose with or without fee is hereby granted, provided that the above
00010 copyright notice and this permission notice appear in all copies.
00011
00012 THE SOFTWARE IS PROVIDED "AS IS" AND ARIN DISCLAIMS ALL WARRANTIES WITH
00013 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00014 AND FITNESS. IN NO EVENT SHALL ARIN BE LIABLE FOR ANY SPECIAL, DIRECT,
00015 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00016 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00017 OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00018 PERFORMANCE OF THIS SOFTWARE.
00019 """
00020
00021
00022
00023
00024 oid2name = {
00025 (1, 2, 840, 113549, 1, 1, 11) : "sha256WithRSAEncryption",
00026 (1, 2, 840, 113549, 1, 1, 12) : "sha384WithRSAEncryption",
00027 (1, 2, 840, 113549, 1, 1, 13) : "sha512WithRSAEncryption",
00028 (1, 2, 840, 113549, 1, 7, 1) : "id-data",
00029 (1, 2, 840, 113549, 1, 9, 16) : "id-smime",
00030 (1, 2, 840, 113549, 1, 9, 16, 1) : "id-ct",
00031 (1, 2, 840, 113549, 1, 9, 16, 1, 24) : "id-ct-routeOriginAttestation",
00032 (1, 2, 840, 113549, 1, 9, 16, 1, 26) : "id-ct-rpkiManifest",
00033 (1, 2, 840, 113549, 1, 9, 16, 1, 28) : "id-ct-xml",
00034 (1, 3, 6, 1, 5, 5, 7, 1, 1) : "authorityInfoAccess",
00035 (1, 3, 6, 1, 5, 5, 7, 1, 11) : "subjectInfoAccess",
00036 (1, 3, 6, 1, 5, 5, 7, 1, 7) : "sbgp-ipAddrBlock",
00037 (1, 3, 6, 1, 5, 5, 7, 1, 8) : "sbgp-autonomousSysNum",
00038 (1, 3, 6, 1, 5, 5, 7, 14, 2) : "id-cp-ipAddr-asNumber",
00039 (1, 3, 6, 1, 5, 5, 7, 48, 2) : "id-ad-caIssuers",
00040 (1, 3, 6, 1, 5, 5, 7, 48, 5) : "id-ad-caRepository",
00041 (1, 3, 6, 1, 5, 5, 7, 48, 9) : "id-ad-signedObjectRepository",
00042 (1, 3, 6, 1, 5, 5, 7, 48, 10) : "id-ad-rpkiManifest",
00043 (1, 3, 6, 1, 5, 5, 7, 48, 11) : "id-ad-signedObject",
00044 (2, 16, 840, 1, 101, 3, 4, 2, 1) : "id-sha256",
00045 (2, 5, 29, 14) : "subjectKeyIdentifier",
00046 (2, 5, 29, 15) : "keyUsage",
00047 (2, 5, 29, 19) : "basicConstraints",
00048 (2, 5, 29, 20) : "cRLNumber",
00049 (2, 5, 29, 31) : "cRLDistributionPoints",
00050 (2, 5, 29, 32) : "certificatePolicies",
00051 (2, 5, 29, 35) : "authorityKeyIdentifier",
00052 (2, 5, 4, 3) : "commonName",
00053 }
00054
00055
00056
00057
00058 name2oid = dict((v, k) for k, v in oid2name.items())