1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir #ifndef _OID_HXX_ 29*cdf0e10cSrcweir #define _OID_HXX_ 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir typedef struct OIDItemStr OIDItem; 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir struct OIDItemStr { 34*cdf0e10cSrcweir char *oid; 35*cdf0e10cSrcweir char *desc; 36*cdf0e10cSrcweir }; 37*cdf0e10cSrcweir 38*cdf0e10cSrcweir OIDItem OIDs[] = { 39*cdf0e10cSrcweir {"1.2.840.113549", "RSA Data Security Inc."}, 40*cdf0e10cSrcweir {"1.2.840.113549.1", "PKCS"}, 41*cdf0e10cSrcweir {"1.2.840.113549.2", "RSA digest algorithm"}, 42*cdf0e10cSrcweir {"1.2.840.113549.3", "RSA cipher algorithm"}, 43*cdf0e10cSrcweir {"1.2.840.113549.1.1", "PKCS #1"}, 44*cdf0e10cSrcweir {"1.2.840.113549.1.2", "Unknown"}, 45*cdf0e10cSrcweir {"1.2.840.113549.1.3", "Unknown"}, 46*cdf0e10cSrcweir {"1.2.840.113549.1.4", "Unknown"}, 47*cdf0e10cSrcweir {"1.2.840.113549.1.5", "PKCS #5"}, 48*cdf0e10cSrcweir {"1.2.840.113549.1.6", "Unknown"}, 49*cdf0e10cSrcweir {"1.2.840.113549.1.7", "PKCS #7"}, 50*cdf0e10cSrcweir {"1.2.840.113549.1.8", "Unknown"}, 51*cdf0e10cSrcweir {"1.2.840.113549.1.9", "PKCS #9"}, 52*cdf0e10cSrcweir {"1.2.840.113549.1.10", "Unknown"}, 53*cdf0e10cSrcweir {"1.2.840.113549.1.12", "PKCS #12"}, 54*cdf0e10cSrcweir {"1.2.840.113549.1.1.2", "PKCS #1 MD2 With RSA Encryption"}, 55*cdf0e10cSrcweir {"1.2.840.113549.1.1.3", "PKCS #1 MD4 With RSA Encryption"}, 56*cdf0e10cSrcweir {"1.2.840.113549.1.1.4", "PKCS #1 MD5 With RSA Encryption"}, 57*cdf0e10cSrcweir {"1.2.840.113549.1.1.1", "PKCS #1 RSA Encryption"}, 58*cdf0e10cSrcweir {"1.2.840.113549.1.1.2", "PKCS #1 MD2 With RSA Encryption"}, 59*cdf0e10cSrcweir {"1.2.840.113549.1.1.3", "PKCS #1 MD4 With RSA Encryption"}, 60*cdf0e10cSrcweir {"1.2.840.113549.1.1.4", "PKCS #1 MD5 With RSA Encryption"}, 61*cdf0e10cSrcweir {"1.2.840.113549.1.1.5", "PKCS #1 SHA-1 With RSA Encryption"}, 62*cdf0e10cSrcweir {"1.2.840.113549.1.1.5", "PKCS #1 SHA-1 With RSA Encryption"}, 63*cdf0e10cSrcweir {"1.2.840.113549.1.3.1", "Unknown"}, 64*cdf0e10cSrcweir {"1.2.840.113549.1.7.1", "PKCS #7 Data"}, 65*cdf0e10cSrcweir {"1.2.840.113549.1.7.2", "PKCS #7 Signed Data"}, 66*cdf0e10cSrcweir {"1.2.840.113549.1.7.3", "PKCS #7 Enveloped Data"}, 67*cdf0e10cSrcweir {"1.2.840.113549.1.7.4", "PKCS #7 Signed and Enveloped Data"}, 68*cdf0e10cSrcweir {"1.2.840.113549.1.7.5", "PKCS #7 Digested Data"}, 69*cdf0e10cSrcweir {"1.2.840.113549.1.7.5", "PKCS #7 Digested Data"}, 70*cdf0e10cSrcweir {"1.2.840.113549.1.7.6", "PKCS #7 Encrypted Data"}, 71*cdf0e10cSrcweir {"1.2.840.113549.1.9.1", "PKCS #9 Email Address"}, 72*cdf0e10cSrcweir {"1.2.840.113549.1.9.2", "PKCS #9 Unstructured Name"}, 73*cdf0e10cSrcweir {"1.2.840.113549.1.9.3", "PKCS #9 Content Type"}, 74*cdf0e10cSrcweir {"1.2.840.113549.1.9.4", "PKCS #9 Message Digest"}, 75*cdf0e10cSrcweir {"1.2.840.113549.1.9.5", "PKCS #9 Signing Time"}, 76*cdf0e10cSrcweir {"1.2.840.113549.1.9.6", "PKCS #9 Counter Signature"}, 77*cdf0e10cSrcweir {"1.2.840.113549.1.9.7", "PKCS #9 Challenge Password"}, 78*cdf0e10cSrcweir {"1.2.840.113549.1.9.8", "PKCS #9 Unstructured Address"}, 79*cdf0e10cSrcweir {"1.2.840.113549.1.9.9", "PKCS #9 Extended Certificate Attributes"}, 80*cdf0e10cSrcweir {"1.2.840.113549.1.9.15", "PKCS #9 S/MIME Capabilities"}, 81*cdf0e10cSrcweir {"1.2.840.113549.1.9.15.1", "Unknown"}, 82*cdf0e10cSrcweir {"1.2.840.113549.3.2", "RC2-CBC"}, 83*cdf0e10cSrcweir {"1.2.840.113549.3.4", "RC4"}, 84*cdf0e10cSrcweir {"1.2.840.113549.3.7", "DES-EDE3-CBC"}, 85*cdf0e10cSrcweir {"1.2.840.113549.3.9", "RC5-CBCPad"}, 86*cdf0e10cSrcweir {"1.2.840.10046", "ANSI X9.42"}, 87*cdf0e10cSrcweir {"1.2.840.10046.2.1", "Diffie-Hellman Public Key Algorithm"}, 88*cdf0e10cSrcweir {"1.2.840.10040", "ANSI X9.57"}, 89*cdf0e10cSrcweir {"1.2.840.10040.4.1", "ANSI X9.57 DSA Signature"}, 90*cdf0e10cSrcweir {"1.2.840.10040.4.3", "ANSI X9.57 Algorithm DSA Signature with SHA-1 Digest"}, 91*cdf0e10cSrcweir {"2.5", "Directory"}, 92*cdf0e10cSrcweir {"2.5.8", "X.500-defined algorithms"}, 93*cdf0e10cSrcweir {"2.5.8.1", "X.500-defined encryption algorithms"}, 94*cdf0e10cSrcweir {"2.5.8.2", "Unknown"}, 95*cdf0e10cSrcweir {"2.5.8.3", "Unknown"}, 96*cdf0e10cSrcweir {"2.5.8.1.1", "RSA Encryption Algorithm"}, 97*cdf0e10cSrcweir {"1.3.14", "Open Systems Implementors Workshop"}, 98*cdf0e10cSrcweir {"1.3.14.3.2", "OIW SECSIG Algorithm"}, 99*cdf0e10cSrcweir {"1.3.14.3.2.2", "Unknown"}, 100*cdf0e10cSrcweir {"1.3.14.3.2.3", "Unknown"}, 101*cdf0e10cSrcweir {"1.3.14.3.2.4", "Unknown"}, 102*cdf0e10cSrcweir {"1.3.14.3.2.6", "DES-ECB"}, 103*cdf0e10cSrcweir {"1.3.14.3.2.7", "DES-CBC"}, 104*cdf0e10cSrcweir {"1.3.14.3.2.8", "DES-OFB"}, 105*cdf0e10cSrcweir {"1.3.14.3.2.9", "DES-CFB"}, 106*cdf0e10cSrcweir {"1.3.14.3.2.10", "DES-MAC"}, 107*cdf0e10cSrcweir {"1.3.14.3.2.11", "Unknown"}, 108*cdf0e10cSrcweir {"1.3.14.3.2.12", "Unknown"}, 109*cdf0e10cSrcweir {"1.3.14.3.2.13", "Unknown"}, 110*cdf0e10cSrcweir {"1.3.14.3.2.14", "Unknown"}, 111*cdf0e10cSrcweir {"1.3.14.3.2.15", "ISO SHA with RSA Signature"}, 112*cdf0e10cSrcweir {"1.3.14.3.2.16", "Unknown"}, 113*cdf0e10cSrcweir {"1.3.14.3.2.17", "DES-EDE"}, 114*cdf0e10cSrcweir {"1.3.14.3.2.18", "Unknown"}, 115*cdf0e10cSrcweir {"1.3.14.3.2.19", "Unknown"}, 116*cdf0e10cSrcweir {"1.3.14.3.2.20", "Unknown"}, 117*cdf0e10cSrcweir {"1.3.14.3.2.21", "Unknown"}, 118*cdf0e10cSrcweir {"1.3.14.3.2.22", "Unknown"}, 119*cdf0e10cSrcweir {"1.3.14.3.2.23", "Unknown"}, 120*cdf0e10cSrcweir {"1.3.14.3.2.24", "Unknown"}, 121*cdf0e10cSrcweir {"1.3.14.3.2.25", "Unknown"}, 122*cdf0e10cSrcweir {"1.3.14.3.2.26", "SHA-1"}, 123*cdf0e10cSrcweir {"1.3.14.3.2.27", "Forgezza DSA Signature with SHA-1 Digest"}, 124*cdf0e10cSrcweir {"1.3.14.3.2.28", "Unknown"}, 125*cdf0e10cSrcweir {"1.3.14.3.2.29", "Unknown"}, 126*cdf0e10cSrcweir {"1.3.14.7.2", "Unknown"}, 127*cdf0e10cSrcweir {"1.3.14.7.2.1", "Unknown"}, 128*cdf0e10cSrcweir {"1.3.14.7.2.2", "Unknown"}, 129*cdf0e10cSrcweir {"1.3.14.7.2.3", "Unknown"}, 130*cdf0e10cSrcweir {"1.3.14.7.2.2.1", "Unknown"}, 131*cdf0e10cSrcweir {"1.3.14.7.2.3.1", "Unknown"}, 132*cdf0e10cSrcweir {"2.16.840.1.101.2.1", "US DOD Infosec"}, 133*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.1", "Unknown"}, 134*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.2", "MISSI DSS Algorithm (Old)"}, 135*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.3", "Unknown"}, 136*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.4", "Skipjack CBC64"}, 137*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.5", "Unknown"}, 138*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.6", "Unknown"}, 139*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.7", "Unknown"}, 140*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.8", "Unknown"}, 141*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.9", "Unknown"}, 142*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.10", "MISSI KEA Algorithm"}, 143*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.11", "Unknown"}, 144*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.12", "MISSI KEA and DSS Algorithm (Old)"}, 145*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.13", "Unknown"}, 146*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.14", "Unknown"}, 147*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.15", "Unknown"}, 148*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.16", "Unknown"}, 149*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.17", "Unknown"}, 150*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.18", "Unknown"}, 151*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.19", "MISSI DSS Algorithm"}, 152*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.20", "MISSI KEA and DSS Algorithm"}, 153*cdf0e10cSrcweir {"2.16.840.1.101.2.1.1.21", "Unknown"} 154*cdf0e10cSrcweir }; 155*cdf0e10cSrcweir 156*cdf0e10cSrcweir int nOID = 115; 157*cdf0e10cSrcweir 158*cdf0e10cSrcweir #endif 159