os/ossrv/ssl/libcrypto/src/crypto/objects/objects.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ssl/libcrypto/src/crypto/objects/objects.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,1054 @@
     1.4 +/* crypto/objects/objects.h */
     1.5 +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
     1.6 + * All rights reserved.
     1.7 + *
     1.8 + * This package is an SSL implementation written
     1.9 + * by Eric Young (eay@cryptsoft.com).
    1.10 + * The implementation was written so as to conform with Netscapes SSL.
    1.11 + * 
    1.12 + * This library is free for commercial and non-commercial use as long as
    1.13 + * the following conditions are aheared to.  The following conditions
    1.14 + * apply to all code found in this distribution, be it the RC4, RSA,
    1.15 + * lhash, DES, etc., code; not just the SSL code.  The SSL documentation
    1.16 + * included with this distribution is covered by the same copyright terms
    1.17 + * except that the holder is Tim Hudson (tjh@cryptsoft.com).
    1.18 + * 
    1.19 + * Copyright remains Eric Young's, and as such any Copyright notices in
    1.20 + * the code are not to be removed.
    1.21 + * If this package is used in a product, Eric Young should be given attribution
    1.22 + * as the author of the parts of the library used.
    1.23 + * This can be in the form of a textual message at program startup or
    1.24 + * in documentation (online or textual) provided with the package.
    1.25 + * 
    1.26 + * Redistribution and use in source and binary forms, with or without
    1.27 + * modification, are permitted provided that the following conditions
    1.28 + * are met:
    1.29 + * 1. Redistributions of source code must retain the copyright
    1.30 + *    notice, this list of conditions and the following disclaimer.
    1.31 + * 2. Redistributions in binary form must reproduce the above copyright
    1.32 + *    notice, this list of conditions and the following disclaimer in the
    1.33 + *    documentation and/or other materials provided with the distribution.
    1.34 + * 3. All advertising materials mentioning features or use of this software
    1.35 + *    must display the following acknowledgement:
    1.36 + *    "This product includes cryptographic software written by
    1.37 + *     Eric Young (eay@cryptsoft.com)"
    1.38 + *    The word 'cryptographic' can be left out if the rouines from the library
    1.39 + *    being used are not cryptographic related :-).
    1.40 + * 4. If you include any Windows specific code (or a derivative thereof) from 
    1.41 + *    the apps directory (application code) you must include an acknowledgement:
    1.42 + *    "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
    1.43 + * 
    1.44 + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
    1.45 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    1.46 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    1.47 + * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
    1.48 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    1.49 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    1.50 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    1.51 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    1.52 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    1.53 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.54 + * SUCH DAMAGE.
    1.55 + * 
    1.56 + * The licence and distribution terms for any publically available version or
    1.57 + * derivative of this code cannot be changed.  i.e. this code cannot simply be
    1.58 + * copied and put under another distribution licence
    1.59 + * [including the GNU Public Licence.]
    1.60 + */
    1.61 +/*
    1.62 + © Portions copyright (c) 2006 Nokia Corporation.  All rights reserved.
    1.63 + */
    1.64 +
    1.65 +#ifndef HEADER_OBJECTS_H
    1.66 +#define HEADER_OBJECTS_H
    1.67 +
    1.68 +#define USE_OBJ_MAC
    1.69 +#ifdef SYMBIAN
    1.70 +#include <e32def.h>
    1.71 +#endif
    1.72 +#ifdef USE_OBJ_MAC
    1.73 +#include <openssl/obj_mac.h>
    1.74 +#else
    1.75 +#define SN_undef			"UNDEF"
    1.76 +#define LN_undef			"undefined"
    1.77 +#define NID_undef			0
    1.78 +#define OBJ_undef			0L
    1.79 +
    1.80 +#define SN_Algorithm			"Algorithm"
    1.81 +#define LN_algorithm			"algorithm"
    1.82 +#define NID_algorithm			38
    1.83 +#define OBJ_algorithm			1L,3L,14L,3L,2L
    1.84 +
    1.85 +#define LN_rsadsi			"rsadsi"
    1.86 +#define NID_rsadsi			1
    1.87 +#define OBJ_rsadsi			1L,2L,840L,113549L
    1.88 +
    1.89 +#define LN_pkcs				"pkcs"
    1.90 +#define NID_pkcs			2
    1.91 +#define OBJ_pkcs			OBJ_rsadsi,1L
    1.92 +
    1.93 +#define SN_md2				"MD2"
    1.94 +#define LN_md2				"md2"
    1.95 +#define NID_md2				3
    1.96 +#define OBJ_md2				OBJ_rsadsi,2L,2L
    1.97 +
    1.98 +#define SN_md5				"MD5"
    1.99 +#define LN_md5				"md5"
   1.100 +#define NID_md5				4
   1.101 +#define OBJ_md5				OBJ_rsadsi,2L,5L
   1.102 +
   1.103 +#define SN_rc4				"RC4"
   1.104 +#define LN_rc4				"rc4"
   1.105 +#define NID_rc4				5
   1.106 +#define OBJ_rc4				OBJ_rsadsi,3L,4L
   1.107 +
   1.108 +#define LN_rsaEncryption		"rsaEncryption"
   1.109 +#define NID_rsaEncryption		6
   1.110 +#define OBJ_rsaEncryption		OBJ_pkcs,1L,1L
   1.111 +
   1.112 +#define SN_md2WithRSAEncryption		"RSA-MD2"
   1.113 +#define LN_md2WithRSAEncryption		"md2WithRSAEncryption"
   1.114 +#define NID_md2WithRSAEncryption	7
   1.115 +#define OBJ_md2WithRSAEncryption	OBJ_pkcs,1L,2L
   1.116 +
   1.117 +#define SN_md5WithRSAEncryption		"RSA-MD5"
   1.118 +#define LN_md5WithRSAEncryption		"md5WithRSAEncryption"
   1.119 +#define NID_md5WithRSAEncryption	8
   1.120 +#define OBJ_md5WithRSAEncryption	OBJ_pkcs,1L,4L
   1.121 +
   1.122 +#define SN_pbeWithMD2AndDES_CBC		"PBE-MD2-DES"
   1.123 +#define LN_pbeWithMD2AndDES_CBC		"pbeWithMD2AndDES-CBC"
   1.124 +#define NID_pbeWithMD2AndDES_CBC	9
   1.125 +#define OBJ_pbeWithMD2AndDES_CBC	OBJ_pkcs,5L,1L
   1.126 +
   1.127 +#define SN_pbeWithMD5AndDES_CBC		"PBE-MD5-DES"
   1.128 +#define LN_pbeWithMD5AndDES_CBC		"pbeWithMD5AndDES-CBC"
   1.129 +#define NID_pbeWithMD5AndDES_CBC	10
   1.130 +#define OBJ_pbeWithMD5AndDES_CBC	OBJ_pkcs,5L,3L
   1.131 +
   1.132 +#define LN_X500				"X500"
   1.133 +#define NID_X500			11
   1.134 +#define OBJ_X500			2L,5L
   1.135 +
   1.136 +#define LN_X509				"X509"
   1.137 +#define NID_X509			12
   1.138 +#define OBJ_X509			OBJ_X500,4L
   1.139 +
   1.140 +#define SN_commonName			"CN"
   1.141 +#define LN_commonName			"commonName"
   1.142 +#define NID_commonName			13
   1.143 +#define OBJ_commonName			OBJ_X509,3L
   1.144 +
   1.145 +#define SN_countryName			"C"
   1.146 +#define LN_countryName			"countryName"
   1.147 +#define NID_countryName			14
   1.148 +#define OBJ_countryName			OBJ_X509,6L
   1.149 +
   1.150 +#define SN_localityName			"L"
   1.151 +#define LN_localityName			"localityName"
   1.152 +#define NID_localityName		15
   1.153 +#define OBJ_localityName		OBJ_X509,7L
   1.154 +
   1.155 +/* Postal Address? PA */
   1.156 +
   1.157 +/* should be "ST" (rfc1327) but MS uses 'S' */
   1.158 +#define SN_stateOrProvinceName		"ST"
   1.159 +#define LN_stateOrProvinceName		"stateOrProvinceName"
   1.160 +#define NID_stateOrProvinceName		16
   1.161 +#define OBJ_stateOrProvinceName		OBJ_X509,8L
   1.162 +
   1.163 +#define SN_organizationName		"O"
   1.164 +#define LN_organizationName		"organizationName"
   1.165 +#define NID_organizationName		17
   1.166 +#define OBJ_organizationName		OBJ_X509,10L
   1.167 +
   1.168 +#define SN_organizationalUnitName	"OU"
   1.169 +#define LN_organizationalUnitName	"organizationalUnitName"
   1.170 +#define NID_organizationalUnitName	18
   1.171 +#define OBJ_organizationalUnitName	OBJ_X509,11L
   1.172 +
   1.173 +#define SN_rsa				"RSA"
   1.174 +#define LN_rsa				"rsa"
   1.175 +#define NID_rsa				19
   1.176 +#define OBJ_rsa				OBJ_X500,8L,1L,1L
   1.177 +
   1.178 +#define LN_pkcs7			"pkcs7"
   1.179 +#define NID_pkcs7			20
   1.180 +#define OBJ_pkcs7			OBJ_pkcs,7L
   1.181 +
   1.182 +#define LN_pkcs7_data			"pkcs7-data"
   1.183 +#define NID_pkcs7_data			21
   1.184 +#define OBJ_pkcs7_data			OBJ_pkcs7,1L
   1.185 +
   1.186 +#define LN_pkcs7_signed			"pkcs7-signedData"
   1.187 +#define NID_pkcs7_signed		22
   1.188 +#define OBJ_pkcs7_signed		OBJ_pkcs7,2L
   1.189 +
   1.190 +#define LN_pkcs7_enveloped		"pkcs7-envelopedData"
   1.191 +#define NID_pkcs7_enveloped		23
   1.192 +#define OBJ_pkcs7_enveloped		OBJ_pkcs7,3L
   1.193 +
   1.194 +#define LN_pkcs7_signedAndEnveloped	"pkcs7-signedAndEnvelopedData"
   1.195 +#define NID_pkcs7_signedAndEnveloped	24
   1.196 +#define OBJ_pkcs7_signedAndEnveloped	OBJ_pkcs7,4L
   1.197 +
   1.198 +#define LN_pkcs7_digest			"pkcs7-digestData"
   1.199 +#define NID_pkcs7_digest		25
   1.200 +#define OBJ_pkcs7_digest		OBJ_pkcs7,5L
   1.201 +
   1.202 +#define LN_pkcs7_encrypted		"pkcs7-encryptedData"
   1.203 +#define NID_pkcs7_encrypted		26
   1.204 +#define OBJ_pkcs7_encrypted		OBJ_pkcs7,6L
   1.205 +
   1.206 +#define LN_pkcs3			"pkcs3"
   1.207 +#define NID_pkcs3			27
   1.208 +#define OBJ_pkcs3			OBJ_pkcs,3L
   1.209 +
   1.210 +#define LN_dhKeyAgreement		"dhKeyAgreement"
   1.211 +#define NID_dhKeyAgreement		28
   1.212 +#define OBJ_dhKeyAgreement		OBJ_pkcs3,1L
   1.213 +
   1.214 +#define SN_des_ecb			"DES-ECB"
   1.215 +#define LN_des_ecb			"des-ecb"
   1.216 +#define NID_des_ecb			29
   1.217 +#define OBJ_des_ecb			OBJ_algorithm,6L
   1.218 +
   1.219 +#define SN_des_cfb64			"DES-CFB"
   1.220 +#define LN_des_cfb64			"des-cfb"
   1.221 +#define NID_des_cfb64			30
   1.222 +/* IV + num */
   1.223 +#define OBJ_des_cfb64			OBJ_algorithm,9L
   1.224 +
   1.225 +#define SN_des_cbc			"DES-CBC"
   1.226 +#define LN_des_cbc			"des-cbc"
   1.227 +#define NID_des_cbc			31
   1.228 +/* IV */
   1.229 +#define OBJ_des_cbc			OBJ_algorithm,7L
   1.230 +
   1.231 +#define SN_des_ede			"DES-EDE"
   1.232 +#define LN_des_ede			"des-ede"
   1.233 +#define NID_des_ede			32
   1.234 +/* ?? */
   1.235 +#define OBJ_des_ede			OBJ_algorithm,17L
   1.236 +
   1.237 +#define SN_des_ede3			"DES-EDE3"
   1.238 +#define LN_des_ede3			"des-ede3"
   1.239 +#define NID_des_ede3			33
   1.240 +
   1.241 +#define SN_idea_cbc			"IDEA-CBC"
   1.242 +#define LN_idea_cbc			"idea-cbc"
   1.243 +#define NID_idea_cbc			34
   1.244 +#define OBJ_idea_cbc			1L,3L,6L,1L,4L,1L,188L,7L,1L,1L,2L
   1.245 +
   1.246 +#define SN_idea_cfb64			"IDEA-CFB"
   1.247 +#define LN_idea_cfb64			"idea-cfb"
   1.248 +#define NID_idea_cfb64			35
   1.249 +
   1.250 +#define SN_idea_ecb			"IDEA-ECB"
   1.251 +#define LN_idea_ecb			"idea-ecb"
   1.252 +#define NID_idea_ecb			36
   1.253 +
   1.254 +#define SN_rc2_cbc			"RC2-CBC"
   1.255 +#define LN_rc2_cbc			"rc2-cbc"
   1.256 +#define NID_rc2_cbc			37
   1.257 +#define OBJ_rc2_cbc			OBJ_rsadsi,3L,2L
   1.258 +
   1.259 +#define SN_rc2_ecb			"RC2-ECB"
   1.260 +#define LN_rc2_ecb			"rc2-ecb"
   1.261 +#define NID_rc2_ecb			38
   1.262 +
   1.263 +#define SN_rc2_cfb64			"RC2-CFB"
   1.264 +#define LN_rc2_cfb64			"rc2-cfb"
   1.265 +#define NID_rc2_cfb64			39
   1.266 +
   1.267 +#define SN_rc2_ofb64			"RC2-OFB"
   1.268 +#define LN_rc2_ofb64			"rc2-ofb"
   1.269 +#define NID_rc2_ofb64			40
   1.270 +
   1.271 +#define SN_sha				"SHA"
   1.272 +#define LN_sha				"sha"
   1.273 +#define NID_sha				41
   1.274 +#define OBJ_sha				OBJ_algorithm,18L
   1.275 +
   1.276 +#define SN_shaWithRSAEncryption		"RSA-SHA"
   1.277 +#define LN_shaWithRSAEncryption		"shaWithRSAEncryption"
   1.278 +#define NID_shaWithRSAEncryption	42
   1.279 +#define OBJ_shaWithRSAEncryption	OBJ_algorithm,15L
   1.280 +
   1.281 +#define SN_des_ede_cbc			"DES-EDE-CBC"
   1.282 +#define LN_des_ede_cbc			"des-ede-cbc"
   1.283 +#define NID_des_ede_cbc			43
   1.284 +
   1.285 +#define SN_des_ede3_cbc			"DES-EDE3-CBC"
   1.286 +#define LN_des_ede3_cbc			"des-ede3-cbc"
   1.287 +#define NID_des_ede3_cbc		44
   1.288 +#define OBJ_des_ede3_cbc		OBJ_rsadsi,3L,7L
   1.289 +
   1.290 +#define SN_des_ofb64			"DES-OFB"
   1.291 +#define LN_des_ofb64			"des-ofb"
   1.292 +#define NID_des_ofb64			45
   1.293 +#define OBJ_des_ofb64			OBJ_algorithm,8L
   1.294 +
   1.295 +#define SN_idea_ofb64			"IDEA-OFB"
   1.296 +#define LN_idea_ofb64			"idea-ofb"
   1.297 +#define NID_idea_ofb64			46
   1.298 +
   1.299 +#define LN_pkcs9			"pkcs9"
   1.300 +#define NID_pkcs9			47
   1.301 +#define OBJ_pkcs9			OBJ_pkcs,9L
   1.302 +
   1.303 +#define SN_pkcs9_emailAddress		"Email"
   1.304 +#define LN_pkcs9_emailAddress		"emailAddress"
   1.305 +#define NID_pkcs9_emailAddress		48
   1.306 +#define OBJ_pkcs9_emailAddress		OBJ_pkcs9,1L
   1.307 +
   1.308 +#define LN_pkcs9_unstructuredName	"unstructuredName"
   1.309 +#define NID_pkcs9_unstructuredName	49
   1.310 +#define OBJ_pkcs9_unstructuredName	OBJ_pkcs9,2L
   1.311 +
   1.312 +#define LN_pkcs9_contentType		"contentType"
   1.313 +#define NID_pkcs9_contentType		50
   1.314 +#define OBJ_pkcs9_contentType		OBJ_pkcs9,3L
   1.315 +
   1.316 +#define LN_pkcs9_messageDigest		"messageDigest"
   1.317 +#define NID_pkcs9_messageDigest		51
   1.318 +#define OBJ_pkcs9_messageDigest		OBJ_pkcs9,4L
   1.319 +
   1.320 +#define LN_pkcs9_signingTime		"signingTime"
   1.321 +#define NID_pkcs9_signingTime		52
   1.322 +#define OBJ_pkcs9_signingTime		OBJ_pkcs9,5L
   1.323 +
   1.324 +#define LN_pkcs9_countersignature	"countersignature"
   1.325 +#define NID_pkcs9_countersignature	53
   1.326 +#define OBJ_pkcs9_countersignature	OBJ_pkcs9,6L
   1.327 +
   1.328 +#define LN_pkcs9_challengePassword	"challengePassword"
   1.329 +#define NID_pkcs9_challengePassword	54
   1.330 +#define OBJ_pkcs9_challengePassword	OBJ_pkcs9,7L
   1.331 +
   1.332 +#define LN_pkcs9_unstructuredAddress	"unstructuredAddress"
   1.333 +#define NID_pkcs9_unstructuredAddress	55
   1.334 +#define OBJ_pkcs9_unstructuredAddress	OBJ_pkcs9,8L
   1.335 +
   1.336 +#define LN_pkcs9_extCertAttributes	"extendedCertificateAttributes"
   1.337 +#define NID_pkcs9_extCertAttributes	56
   1.338 +#define OBJ_pkcs9_extCertAttributes	OBJ_pkcs9,9L
   1.339 +
   1.340 +#define SN_netscape			"Netscape"
   1.341 +#define LN_netscape			"Netscape Communications Corp."
   1.342 +#define NID_netscape			57
   1.343 +#define OBJ_netscape			2L,16L,840L,1L,113730L
   1.344 +
   1.345 +#define SN_netscape_cert_extension	"nsCertExt"
   1.346 +#define LN_netscape_cert_extension	"Netscape Certificate Extension"
   1.347 +#define NID_netscape_cert_extension	58
   1.348 +#define OBJ_netscape_cert_extension	OBJ_netscape,1L
   1.349 +
   1.350 +#define SN_netscape_data_type		"nsDataType"
   1.351 +#define LN_netscape_data_type		"Netscape Data Type"
   1.352 +#define NID_netscape_data_type		59
   1.353 +#define OBJ_netscape_data_type		OBJ_netscape,2L
   1.354 +
   1.355 +#define SN_des_ede_cfb64		"DES-EDE-CFB"
   1.356 +#define LN_des_ede_cfb64		"des-ede-cfb"
   1.357 +#define NID_des_ede_cfb64		60
   1.358 +
   1.359 +#define SN_des_ede3_cfb64		"DES-EDE3-CFB"
   1.360 +#define LN_des_ede3_cfb64		"des-ede3-cfb"
   1.361 +#define NID_des_ede3_cfb64		61
   1.362 +
   1.363 +#define SN_des_ede_ofb64		"DES-EDE-OFB"
   1.364 +#define LN_des_ede_ofb64		"des-ede-ofb"
   1.365 +#define NID_des_ede_ofb64		62
   1.366 +
   1.367 +#define SN_des_ede3_ofb64		"DES-EDE3-OFB"
   1.368 +#define LN_des_ede3_ofb64		"des-ede3-ofb"
   1.369 +#define NID_des_ede3_ofb64		63
   1.370 +
   1.371 +/* I'm not sure about the object ID */
   1.372 +#define SN_sha1				"SHA1"
   1.373 +#define LN_sha1				"sha1"
   1.374 +#define NID_sha1			64
   1.375 +#define OBJ_sha1			OBJ_algorithm,26L
   1.376 +/* 28 Jun 1996 - eay */
   1.377 +/* #define OBJ_sha1			1L,3L,14L,2L,26L,05L <- wrong */
   1.378 +
   1.379 +#define SN_sha1WithRSAEncryption	"RSA-SHA1"
   1.380 +#define LN_sha1WithRSAEncryption	"sha1WithRSAEncryption"
   1.381 +#define NID_sha1WithRSAEncryption	65
   1.382 +#define OBJ_sha1WithRSAEncryption	OBJ_pkcs,1L,5L
   1.383 +
   1.384 +#define SN_dsaWithSHA			"DSA-SHA"
   1.385 +#define LN_dsaWithSHA			"dsaWithSHA"
   1.386 +#define NID_dsaWithSHA			66
   1.387 +#define OBJ_dsaWithSHA			OBJ_algorithm,13L
   1.388 +
   1.389 +#define SN_dsa_2			"DSA-old"
   1.390 +#define LN_dsa_2			"dsaEncryption-old"
   1.391 +#define NID_dsa_2			67
   1.392 +#define OBJ_dsa_2			OBJ_algorithm,12L
   1.393 +
   1.394 +/* proposed by microsoft to RSA */
   1.395 +#define SN_pbeWithSHA1AndRC2_CBC	"PBE-SHA1-RC2-64"
   1.396 +#define LN_pbeWithSHA1AndRC2_CBC	"pbeWithSHA1AndRC2-CBC"
   1.397 +#define NID_pbeWithSHA1AndRC2_CBC	68
   1.398 +#define OBJ_pbeWithSHA1AndRC2_CBC	OBJ_pkcs,5L,11L 
   1.399 +
   1.400 +/* proposed by microsoft to RSA as pbeWithSHA1AndRC4: it is now
   1.401 + * defined explicitly in PKCS#5 v2.0 as id-PBKDF2 which is something
   1.402 + * completely different.
   1.403 + */
   1.404 +#define LN_id_pbkdf2			"PBKDF2"
   1.405 +#define NID_id_pbkdf2			69
   1.406 +#define OBJ_id_pbkdf2			OBJ_pkcs,5L,12L 
   1.407 +
   1.408 +#define SN_dsaWithSHA1_2		"DSA-SHA1-old"
   1.409 +#define LN_dsaWithSHA1_2		"dsaWithSHA1-old"
   1.410 +#define NID_dsaWithSHA1_2		70
   1.411 +/* Got this one from 'sdn706r20.pdf' which is actually an NSA document :-) */
   1.412 +#define OBJ_dsaWithSHA1_2		OBJ_algorithm,27L
   1.413 +
   1.414 +#define SN_netscape_cert_type		"nsCertType"
   1.415 +#define LN_netscape_cert_type		"Netscape Cert Type"
   1.416 +#define NID_netscape_cert_type		71
   1.417 +#define OBJ_netscape_cert_type		OBJ_netscape_cert_extension,1L
   1.418 +
   1.419 +#define SN_netscape_base_url		"nsBaseUrl"
   1.420 +#define LN_netscape_base_url		"Netscape Base Url"
   1.421 +#define NID_netscape_base_url		72
   1.422 +#define OBJ_netscape_base_url		OBJ_netscape_cert_extension,2L
   1.423 +
   1.424 +#define SN_netscape_revocation_url	"nsRevocationUrl"
   1.425 +#define LN_netscape_revocation_url	"Netscape Revocation Url"
   1.426 +#define NID_netscape_revocation_url	73
   1.427 +#define OBJ_netscape_revocation_url	OBJ_netscape_cert_extension,3L
   1.428 +
   1.429 +#define SN_netscape_ca_revocation_url	"nsCaRevocationUrl"
   1.430 +#define LN_netscape_ca_revocation_url	"Netscape CA Revocation Url"
   1.431 +#define NID_netscape_ca_revocation_url	74
   1.432 +#define OBJ_netscape_ca_revocation_url	OBJ_netscape_cert_extension,4L
   1.433 +
   1.434 +#define SN_netscape_renewal_url		"nsRenewalUrl"
   1.435 +#define LN_netscape_renewal_url		"Netscape Renewal Url"
   1.436 +#define NID_netscape_renewal_url	75
   1.437 +#define OBJ_netscape_renewal_url	OBJ_netscape_cert_extension,7L
   1.438 +
   1.439 +#define SN_netscape_ca_policy_url	"nsCaPolicyUrl"
   1.440 +#define LN_netscape_ca_policy_url	"Netscape CA Policy Url"
   1.441 +#define NID_netscape_ca_policy_url	76
   1.442 +#define OBJ_netscape_ca_policy_url	OBJ_netscape_cert_extension,8L
   1.443 +
   1.444 +#define SN_netscape_ssl_server_name	"nsSslServerName"
   1.445 +#define LN_netscape_ssl_server_name	"Netscape SSL Server Name"
   1.446 +#define NID_netscape_ssl_server_name	77
   1.447 +#define OBJ_netscape_ssl_server_name	OBJ_netscape_cert_extension,12L
   1.448 +
   1.449 +#define SN_netscape_comment		"nsComment"
   1.450 +#define LN_netscape_comment		"Netscape Comment"
   1.451 +#define NID_netscape_comment		78
   1.452 +#define OBJ_netscape_comment		OBJ_netscape_cert_extension,13L
   1.453 +
   1.454 +#define SN_netscape_cert_sequence	"nsCertSequence"
   1.455 +#define LN_netscape_cert_sequence	"Netscape Certificate Sequence"
   1.456 +#define NID_netscape_cert_sequence	79
   1.457 +#define OBJ_netscape_cert_sequence	OBJ_netscape_data_type,5L
   1.458 +
   1.459 +#define SN_desx_cbc			"DESX-CBC"
   1.460 +#define LN_desx_cbc			"desx-cbc"
   1.461 +#define NID_desx_cbc			80
   1.462 +
   1.463 +#define SN_id_ce			"id-ce"
   1.464 +#define NID_id_ce			81
   1.465 +#define OBJ_id_ce			2L,5L,29L
   1.466 +
   1.467 +#define SN_subject_key_identifier	"subjectKeyIdentifier"
   1.468 +#define LN_subject_key_identifier	"X509v3 Subject Key Identifier"
   1.469 +#define NID_subject_key_identifier	82
   1.470 +#define OBJ_subject_key_identifier	OBJ_id_ce,14L
   1.471 +
   1.472 +#define SN_key_usage			"keyUsage"
   1.473 +#define LN_key_usage			"X509v3 Key Usage"
   1.474 +#define NID_key_usage			83
   1.475 +#define OBJ_key_usage			OBJ_id_ce,15L
   1.476 +
   1.477 +#define SN_private_key_usage_period	"privateKeyUsagePeriod"
   1.478 +#define LN_private_key_usage_period	"X509v3 Private Key Usage Period"
   1.479 +#define NID_private_key_usage_period	84
   1.480 +#define OBJ_private_key_usage_period	OBJ_id_ce,16L
   1.481 +
   1.482 +#define SN_subject_alt_name		"subjectAltName"
   1.483 +#define LN_subject_alt_name		"X509v3 Subject Alternative Name"
   1.484 +#define NID_subject_alt_name		85
   1.485 +#define OBJ_subject_alt_name		OBJ_id_ce,17L
   1.486 +
   1.487 +#define SN_issuer_alt_name		"issuerAltName"
   1.488 +#define LN_issuer_alt_name		"X509v3 Issuer Alternative Name"
   1.489 +#define NID_issuer_alt_name		86
   1.490 +#define OBJ_issuer_alt_name		OBJ_id_ce,18L
   1.491 +
   1.492 +#define SN_basic_constraints		"basicConstraints"
   1.493 +#define LN_basic_constraints		"X509v3 Basic Constraints"
   1.494 +#define NID_basic_constraints		87
   1.495 +#define OBJ_basic_constraints		OBJ_id_ce,19L
   1.496 +
   1.497 +#define SN_crl_number			"crlNumber"
   1.498 +#define LN_crl_number			"X509v3 CRL Number"
   1.499 +#define NID_crl_number			88
   1.500 +#define OBJ_crl_number			OBJ_id_ce,20L
   1.501 +
   1.502 +#define SN_certificate_policies		"certificatePolicies"
   1.503 +#define LN_certificate_policies		"X509v3 Certificate Policies"
   1.504 +#define NID_certificate_policies	89
   1.505 +#define OBJ_certificate_policies	OBJ_id_ce,32L
   1.506 +
   1.507 +#define SN_authority_key_identifier	"authorityKeyIdentifier"
   1.508 +#define LN_authority_key_identifier	"X509v3 Authority Key Identifier"
   1.509 +#define NID_authority_key_identifier	90
   1.510 +#define OBJ_authority_key_identifier	OBJ_id_ce,35L
   1.511 +
   1.512 +#define SN_bf_cbc			"BF-CBC"
   1.513 +#define LN_bf_cbc			"bf-cbc"
   1.514 +#define NID_bf_cbc			91
   1.515 +#define OBJ_bf_cbc			1L,3L,6L,1L,4L,1L,3029L,1L,2L
   1.516 +
   1.517 +#define SN_bf_ecb			"BF-ECB"
   1.518 +#define LN_bf_ecb			"bf-ecb"
   1.519 +#define NID_bf_ecb			92
   1.520 +
   1.521 +#define SN_bf_cfb64			"BF-CFB"
   1.522 +#define LN_bf_cfb64			"bf-cfb"
   1.523 +#define NID_bf_cfb64			93
   1.524 +
   1.525 +#define SN_bf_ofb64			"BF-OFB"
   1.526 +#define LN_bf_ofb64			"bf-ofb"
   1.527 +#define NID_bf_ofb64			94
   1.528 +
   1.529 +#define SN_mdc2				"MDC2"
   1.530 +#define LN_mdc2				"mdc2"
   1.531 +#define NID_mdc2			95
   1.532 +#define OBJ_mdc2			2L,5L,8L,3L,101L
   1.533 +/* An alternative?			1L,3L,14L,3L,2L,19L */
   1.534 +
   1.535 +#define SN_mdc2WithRSA			"RSA-MDC2"
   1.536 +#define LN_mdc2WithRSA			"mdc2withRSA"
   1.537 +#define NID_mdc2WithRSA			96
   1.538 +#define OBJ_mdc2WithRSA			2L,5L,8L,3L,100L
   1.539 +
   1.540 +#define SN_rc4_40			"RC4-40"
   1.541 +#define LN_rc4_40			"rc4-40"
   1.542 +#define NID_rc4_40			97
   1.543 +
   1.544 +#define SN_rc2_40_cbc			"RC2-40-CBC"
   1.545 +#define LN_rc2_40_cbc			"rc2-40-cbc"
   1.546 +#define NID_rc2_40_cbc			98
   1.547 +
   1.548 +#define SN_givenName			"G"
   1.549 +#define LN_givenName			"givenName"
   1.550 +#define NID_givenName			99
   1.551 +#define OBJ_givenName			OBJ_X509,42L
   1.552 +
   1.553 +#define SN_surname			"S"
   1.554 +#define LN_surname			"surname"
   1.555 +#define NID_surname			100
   1.556 +#define OBJ_surname			OBJ_X509,4L
   1.557 +
   1.558 +#define SN_initials			"I"
   1.559 +#define LN_initials			"initials"
   1.560 +#define NID_initials			101
   1.561 +#define OBJ_initials			OBJ_X509,43L
   1.562 +
   1.563 +#define SN_uniqueIdentifier		"UID"
   1.564 +#define LN_uniqueIdentifier		"uniqueIdentifier"
   1.565 +#define NID_uniqueIdentifier		102
   1.566 +#define OBJ_uniqueIdentifier		OBJ_X509,45L
   1.567 +
   1.568 +#define SN_crl_distribution_points	"crlDistributionPoints"
   1.569 +#define LN_crl_distribution_points	"X509v3 CRL Distribution Points"
   1.570 +#define NID_crl_distribution_points	103
   1.571 +#define OBJ_crl_distribution_points	OBJ_id_ce,31L
   1.572 +
   1.573 +#define SN_md5WithRSA			"RSA-NP-MD5"
   1.574 +#define LN_md5WithRSA			"md5WithRSA"
   1.575 +#define NID_md5WithRSA			104
   1.576 +#define OBJ_md5WithRSA			OBJ_algorithm,3L
   1.577 +
   1.578 +#define SN_serialNumber			"SN"
   1.579 +#define LN_serialNumber			"serialNumber"
   1.580 +#define NID_serialNumber		105
   1.581 +#define OBJ_serialNumber		OBJ_X509,5L
   1.582 +
   1.583 +#define SN_title			"T"
   1.584 +#define LN_title			"title"
   1.585 +#define NID_title			106
   1.586 +#define OBJ_title			OBJ_X509,12L
   1.587 +
   1.588 +#define SN_description			"D"
   1.589 +#define LN_description			"description"
   1.590 +#define NID_description			107
   1.591 +#define OBJ_description			OBJ_X509,13L
   1.592 +
   1.593 +/* CAST5 is CAST-128, I'm just sticking with the documentation */
   1.594 +#define SN_cast5_cbc			"CAST5-CBC"
   1.595 +#define LN_cast5_cbc			"cast5-cbc"
   1.596 +#define NID_cast5_cbc			108
   1.597 +#define OBJ_cast5_cbc			1L,2L,840L,113533L,7L,66L,10L
   1.598 +
   1.599 +#define SN_cast5_ecb			"CAST5-ECB"
   1.600 +#define LN_cast5_ecb			"cast5-ecb"
   1.601 +#define NID_cast5_ecb			109
   1.602 +
   1.603 +#define SN_cast5_cfb64			"CAST5-CFB"
   1.604 +#define LN_cast5_cfb64			"cast5-cfb"
   1.605 +#define NID_cast5_cfb64			110
   1.606 +
   1.607 +#define SN_cast5_ofb64			"CAST5-OFB"
   1.608 +#define LN_cast5_ofb64			"cast5-ofb"
   1.609 +#define NID_cast5_ofb64			111
   1.610 +
   1.611 +#define LN_pbeWithMD5AndCast5_CBC	"pbeWithMD5AndCast5CBC"
   1.612 +#define NID_pbeWithMD5AndCast5_CBC	112
   1.613 +#define OBJ_pbeWithMD5AndCast5_CBC	1L,2L,840L,113533L,7L,66L,12L
   1.614 +
   1.615 +/* This is one sun will soon be using :-(
   1.616 + * id-dsa-with-sha1 ID  ::= {
   1.617 + *   iso(1) member-body(2) us(840) x9-57 (10040) x9cm(4) 3 }
   1.618 + */
   1.619 +#define SN_dsaWithSHA1			"DSA-SHA1"
   1.620 +#define LN_dsaWithSHA1			"dsaWithSHA1"
   1.621 +#define NID_dsaWithSHA1			113
   1.622 +#define OBJ_dsaWithSHA1			1L,2L,840L,10040L,4L,3L
   1.623 +
   1.624 +#define NID_md5_sha1			114
   1.625 +#define SN_md5_sha1			"MD5-SHA1"
   1.626 +#define LN_md5_sha1			"md5-sha1"
   1.627 +
   1.628 +#define SN_sha1WithRSA			"RSA-SHA1-2"
   1.629 +#define LN_sha1WithRSA			"sha1WithRSA"
   1.630 +#define NID_sha1WithRSA			115
   1.631 +#define OBJ_sha1WithRSA			OBJ_algorithm,29L
   1.632 +
   1.633 +#define SN_dsa				"DSA"
   1.634 +#define LN_dsa				"dsaEncryption"
   1.635 +#define NID_dsa				116
   1.636 +#define OBJ_dsa				1L,2L,840L,10040L,4L,1L
   1.637 +
   1.638 +#define SN_ripemd160			"RIPEMD160"
   1.639 +#define LN_ripemd160			"ripemd160"
   1.640 +#define NID_ripemd160			117
   1.641 +#define OBJ_ripemd160			1L,3L,36L,3L,2L,1L
   1.642 +
   1.643 +/* The name should actually be rsaSignatureWithripemd160, but I'm going
   1.644 + * to continue using the convention I'm using with the other ciphers */
   1.645 +#define SN_ripemd160WithRSA		"RSA-RIPEMD160"
   1.646 +#define LN_ripemd160WithRSA		"ripemd160WithRSA"
   1.647 +#define NID_ripemd160WithRSA		119
   1.648 +#define OBJ_ripemd160WithRSA		1L,3L,36L,3L,3L,1L,2L
   1.649 +
   1.650 +/* Taken from rfc2040
   1.651 + *  RC5_CBC_Parameters ::= SEQUENCE {
   1.652 + *	version           INTEGER (v1_0(16)),
   1.653 + *	rounds            INTEGER (8..127),
   1.654 + *	blockSizeInBits   INTEGER (64, 128),
   1.655 + *	iv                OCTET STRING OPTIONAL
   1.656 + *	}
   1.657 + */
   1.658 +#define SN_rc5_cbc			"RC5-CBC"
   1.659 +#define LN_rc5_cbc			"rc5-cbc"
   1.660 +#define NID_rc5_cbc			120
   1.661 +#define OBJ_rc5_cbc			OBJ_rsadsi,3L,8L
   1.662 +
   1.663 +#define SN_rc5_ecb			"RC5-ECB"
   1.664 +#define LN_rc5_ecb			"rc5-ecb"
   1.665 +#define NID_rc5_ecb			121
   1.666 +
   1.667 +#define SN_rc5_cfb64			"RC5-CFB"
   1.668 +#define LN_rc5_cfb64			"rc5-cfb"
   1.669 +#define NID_rc5_cfb64			122
   1.670 +
   1.671 +#define SN_rc5_ofb64			"RC5-OFB"
   1.672 +#define LN_rc5_ofb64			"rc5-ofb"
   1.673 +#define NID_rc5_ofb64			123
   1.674 +
   1.675 +#define SN_rle_compression		"RLE"
   1.676 +#define LN_rle_compression		"run length compression"
   1.677 +#define NID_rle_compression		124
   1.678 +#define OBJ_rle_compression		1L,1L,1L,1L,666L,1L
   1.679 +
   1.680 +#define SN_zlib_compression		"ZLIB"
   1.681 +#define LN_zlib_compression		"zlib compression"
   1.682 +#define NID_zlib_compression		125
   1.683 +#define OBJ_zlib_compression		1L,1L,1L,1L,666L,2L
   1.684 +
   1.685 +#define SN_ext_key_usage		"extendedKeyUsage"
   1.686 +#define LN_ext_key_usage		"X509v3 Extended Key Usage"
   1.687 +#define NID_ext_key_usage		126
   1.688 +#define OBJ_ext_key_usage		OBJ_id_ce,37
   1.689 +
   1.690 +#define SN_id_pkix			"PKIX"
   1.691 +#define NID_id_pkix			127
   1.692 +#define OBJ_id_pkix			1L,3L,6L,1L,5L,5L,7L
   1.693 +
   1.694 +#define SN_id_kp			"id-kp"
   1.695 +#define NID_id_kp			128
   1.696 +#define OBJ_id_kp			OBJ_id_pkix,3L
   1.697 +
   1.698 +/* PKIX extended key usage OIDs */
   1.699 +
   1.700 +#define SN_server_auth			"serverAuth"
   1.701 +#define LN_server_auth			"TLS Web Server Authentication"
   1.702 +#define NID_server_auth			129
   1.703 +#define OBJ_server_auth			OBJ_id_kp,1L
   1.704 +
   1.705 +#define SN_client_auth			"clientAuth"
   1.706 +#define LN_client_auth			"TLS Web Client Authentication"
   1.707 +#define NID_client_auth			130
   1.708 +#define OBJ_client_auth			OBJ_id_kp,2L
   1.709 +
   1.710 +#define SN_code_sign			"codeSigning"
   1.711 +#define LN_code_sign			"Code Signing"
   1.712 +#define NID_code_sign			131
   1.713 +#define OBJ_code_sign			OBJ_id_kp,3L
   1.714 +
   1.715 +#define SN_email_protect		"emailProtection"
   1.716 +#define LN_email_protect		"E-mail Protection"
   1.717 +#define NID_email_protect		132
   1.718 +#define OBJ_email_protect		OBJ_id_kp,4L
   1.719 +
   1.720 +#define SN_time_stamp			"timeStamping"
   1.721 +#define LN_time_stamp			"Time Stamping"
   1.722 +#define NID_time_stamp			133
   1.723 +#define OBJ_time_stamp			OBJ_id_kp,8L
   1.724 +
   1.725 +/* Additional extended key usage OIDs: Microsoft */
   1.726 +
   1.727 +#define SN_ms_code_ind			"msCodeInd"
   1.728 +#define LN_ms_code_ind			"Microsoft Individual Code Signing"
   1.729 +#define NID_ms_code_ind			134
   1.730 +#define OBJ_ms_code_ind			1L,3L,6L,1L,4L,1L,311L,2L,1L,21L
   1.731 +
   1.732 +#define SN_ms_code_com			"msCodeCom"
   1.733 +#define LN_ms_code_com			"Microsoft Commercial Code Signing"
   1.734 +#define NID_ms_code_com			135
   1.735 +#define OBJ_ms_code_com			1L,3L,6L,1L,4L,1L,311L,2L,1L,22L
   1.736 +
   1.737 +#define SN_ms_ctl_sign			"msCTLSign"
   1.738 +#define LN_ms_ctl_sign			"Microsoft Trust List Signing"
   1.739 +#define NID_ms_ctl_sign			136
   1.740 +#define OBJ_ms_ctl_sign			1L,3L,6L,1L,4L,1L,311L,10L,3L,1L
   1.741 +
   1.742 +#define SN_ms_sgc			"msSGC"
   1.743 +#define LN_ms_sgc			"Microsoft Server Gated Crypto"
   1.744 +#define NID_ms_sgc			137
   1.745 +#define OBJ_ms_sgc			1L,3L,6L,1L,4L,1L,311L,10L,3L,3L
   1.746 +
   1.747 +#define SN_ms_efs			"msEFS"
   1.748 +#define LN_ms_efs			"Microsoft Encrypted File System"
   1.749 +#define NID_ms_efs			138
   1.750 +#define OBJ_ms_efs			1L,3L,6L,1L,4L,1L,311L,10L,3L,4L
   1.751 +
   1.752 +/* Additional usage: Netscape */
   1.753 +
   1.754 +#define SN_ns_sgc			"nsSGC"
   1.755 +#define LN_ns_sgc			"Netscape Server Gated Crypto"
   1.756 +#define NID_ns_sgc			139
   1.757 +#define OBJ_ns_sgc			OBJ_netscape,4L,1L
   1.758 +
   1.759 +#define SN_delta_crl			"deltaCRL"
   1.760 +#define LN_delta_crl			"X509v3 Delta CRL Indicator"
   1.761 +#define NID_delta_crl			140
   1.762 +#define OBJ_delta_crl			OBJ_id_ce,27L
   1.763 +
   1.764 +#define SN_crl_reason			"CRLReason"
   1.765 +#define LN_crl_reason			"CRL Reason Code"
   1.766 +#define NID_crl_reason			141
   1.767 +#define OBJ_crl_reason			OBJ_id_ce,21L
   1.768 +
   1.769 +#define SN_invalidity_date		"invalidityDate"
   1.770 +#define LN_invalidity_date		"Invalidity Date"
   1.771 +#define NID_invalidity_date		142
   1.772 +#define OBJ_invalidity_date		OBJ_id_ce,24L
   1.773 +
   1.774 +#define SN_sxnet			"SXNetID"
   1.775 +#define LN_sxnet			"Strong Extranet ID"
   1.776 +#define NID_sxnet			143
   1.777 +#define OBJ_sxnet			1L,3L,101L,1L,4L,1L
   1.778 +
   1.779 +/* PKCS12 and related OBJECT IDENTIFIERS */
   1.780 +
   1.781 +#define OBJ_pkcs12			OBJ_pkcs,12L
   1.782 +#define OBJ_pkcs12_pbeids		OBJ_pkcs12, 1
   1.783 +
   1.784 +#define SN_pbe_WithSHA1And128BitRC4	"PBE-SHA1-RC4-128"
   1.785 +#define LN_pbe_WithSHA1And128BitRC4	"pbeWithSHA1And128BitRC4"
   1.786 +#define NID_pbe_WithSHA1And128BitRC4	144
   1.787 +#define OBJ_pbe_WithSHA1And128BitRC4	OBJ_pkcs12_pbeids, 1L
   1.788 +
   1.789 +#define SN_pbe_WithSHA1And40BitRC4	"PBE-SHA1-RC4-40"
   1.790 +#define LN_pbe_WithSHA1And40BitRC4	"pbeWithSHA1And40BitRC4"
   1.791 +#define NID_pbe_WithSHA1And40BitRC4	145
   1.792 +#define OBJ_pbe_WithSHA1And40BitRC4	OBJ_pkcs12_pbeids, 2L
   1.793 +
   1.794 +#define SN_pbe_WithSHA1And3_Key_TripleDES_CBC	"PBE-SHA1-3DES"
   1.795 +#define LN_pbe_WithSHA1And3_Key_TripleDES_CBC	"pbeWithSHA1And3-KeyTripleDES-CBC"
   1.796 +#define NID_pbe_WithSHA1And3_Key_TripleDES_CBC	146
   1.797 +#define OBJ_pbe_WithSHA1And3_Key_TripleDES_CBC	OBJ_pkcs12_pbeids, 3L
   1.798 +
   1.799 +#define SN_pbe_WithSHA1And2_Key_TripleDES_CBC	"PBE-SHA1-2DES"
   1.800 +#define LN_pbe_WithSHA1And2_Key_TripleDES_CBC	"pbeWithSHA1And2-KeyTripleDES-CBC"
   1.801 +#define NID_pbe_WithSHA1And2_Key_TripleDES_CBC	147
   1.802 +#define OBJ_pbe_WithSHA1And2_Key_TripleDES_CBC	OBJ_pkcs12_pbeids, 4L
   1.803 +
   1.804 +#define SN_pbe_WithSHA1And128BitRC2_CBC		"PBE-SHA1-RC2-128"
   1.805 +#define LN_pbe_WithSHA1And128BitRC2_CBC		"pbeWithSHA1And128BitRC2-CBC"
   1.806 +#define NID_pbe_WithSHA1And128BitRC2_CBC	148
   1.807 +#define OBJ_pbe_WithSHA1And128BitRC2_CBC	OBJ_pkcs12_pbeids, 5L
   1.808 +
   1.809 +#define SN_pbe_WithSHA1And40BitRC2_CBC	"PBE-SHA1-RC2-40"
   1.810 +#define LN_pbe_WithSHA1And40BitRC2_CBC	"pbeWithSHA1And40BitRC2-CBC"
   1.811 +#define NID_pbe_WithSHA1And40BitRC2_CBC	149
   1.812 +#define OBJ_pbe_WithSHA1And40BitRC2_CBC	OBJ_pkcs12_pbeids, 6L
   1.813 +
   1.814 +#define OBJ_pkcs12_Version1	OBJ_pkcs12, 10L
   1.815 +
   1.816 +#define OBJ_pkcs12_BagIds	OBJ_pkcs12_Version1, 1L
   1.817 +
   1.818 +#define LN_keyBag		"keyBag"
   1.819 +#define NID_keyBag		150
   1.820 +#define OBJ_keyBag		OBJ_pkcs12_BagIds, 1L
   1.821 +
   1.822 +#define LN_pkcs8ShroudedKeyBag	"pkcs8ShroudedKeyBag"
   1.823 +#define NID_pkcs8ShroudedKeyBag	151
   1.824 +#define OBJ_pkcs8ShroudedKeyBag	OBJ_pkcs12_BagIds, 2L
   1.825 +
   1.826 +#define LN_certBag		"certBag"
   1.827 +#define NID_certBag		152
   1.828 +#define OBJ_certBag		OBJ_pkcs12_BagIds, 3L
   1.829 +
   1.830 +#define LN_crlBag		"crlBag"
   1.831 +#define NID_crlBag		153
   1.832 +#define OBJ_crlBag		OBJ_pkcs12_BagIds, 4L
   1.833 +
   1.834 +#define LN_secretBag		"secretBag"
   1.835 +#define NID_secretBag		154
   1.836 +#define OBJ_secretBag		OBJ_pkcs12_BagIds, 5L
   1.837 +
   1.838 +#define LN_safeContentsBag	"safeContentsBag"
   1.839 +#define NID_safeContentsBag	155
   1.840 +#define OBJ_safeContentsBag	OBJ_pkcs12_BagIds, 6L
   1.841 +
   1.842 +#define LN_friendlyName		"friendlyName"
   1.843 +#define	NID_friendlyName	156
   1.844 +#define OBJ_friendlyName	OBJ_pkcs9, 20L
   1.845 +
   1.846 +#define LN_localKeyID		"localKeyID"
   1.847 +#define	NID_localKeyID		157
   1.848 +#define OBJ_localKeyID		OBJ_pkcs9, 21L
   1.849 +
   1.850 +#define OBJ_certTypes		OBJ_pkcs9, 22L
   1.851 +
   1.852 +#define LN_x509Certificate	"x509Certificate"
   1.853 +#define	NID_x509Certificate	158
   1.854 +#define OBJ_x509Certificate	OBJ_certTypes, 1L
   1.855 +
   1.856 +#define LN_sdsiCertificate	"sdsiCertificate"
   1.857 +#define	NID_sdsiCertificate	159
   1.858 +#define OBJ_sdsiCertificate	OBJ_certTypes, 2L
   1.859 +
   1.860 +#define OBJ_crlTypes		OBJ_pkcs9, 23L
   1.861 +
   1.862 +#define LN_x509Crl		"x509Crl"
   1.863 +#define	NID_x509Crl		160
   1.864 +#define OBJ_x509Crl		OBJ_crlTypes, 1L
   1.865 +
   1.866 +/* PKCS#5 v2 OIDs */
   1.867 +
   1.868 +#define LN_pbes2		"PBES2"
   1.869 +#define NID_pbes2		161
   1.870 +#define OBJ_pbes2		OBJ_pkcs,5L,13L
   1.871 +
   1.872 +#define LN_pbmac1		"PBMAC1"
   1.873 +#define NID_pbmac1		162
   1.874 +#define OBJ_pbmac1		OBJ_pkcs,5L,14L
   1.875 +
   1.876 +#define LN_hmacWithSHA1		"hmacWithSHA1"
   1.877 +#define NID_hmacWithSHA1	163
   1.878 +#define OBJ_hmacWithSHA1	OBJ_rsadsi,2L,7L
   1.879 +
   1.880 +/* Policy Qualifier Ids */
   1.881 +
   1.882 +#define LN_id_qt_cps		"Policy Qualifier CPS"
   1.883 +#define SN_id_qt_cps		"id-qt-cps"
   1.884 +#define NID_id_qt_cps		164
   1.885 +#define OBJ_id_qt_cps		OBJ_id_pkix,2L,1L
   1.886 +
   1.887 +#define LN_id_qt_unotice	"Policy Qualifier User Notice"
   1.888 +#define SN_id_qt_unotice	"id-qt-unotice"
   1.889 +#define NID_id_qt_unotice	165
   1.890 +#define OBJ_id_qt_unotice	OBJ_id_pkix,2L,2L
   1.891 +
   1.892 +#define SN_rc2_64_cbc			"RC2-64-CBC"
   1.893 +#define LN_rc2_64_cbc			"rc2-64-cbc"
   1.894 +#define NID_rc2_64_cbc			166
   1.895 +
   1.896 +#define SN_SMIMECapabilities		"SMIME-CAPS"
   1.897 +#define LN_SMIMECapabilities		"S/MIME Capabilities"
   1.898 +#define NID_SMIMECapabilities		167
   1.899 +#define OBJ_SMIMECapabilities		OBJ_pkcs9,15L
   1.900 +
   1.901 +#define SN_pbeWithMD2AndRC2_CBC		"PBE-MD2-RC2-64"
   1.902 +#define LN_pbeWithMD2AndRC2_CBC		"pbeWithMD2AndRC2-CBC"
   1.903 +#define NID_pbeWithMD2AndRC2_CBC	168
   1.904 +#define OBJ_pbeWithMD2AndRC2_CBC	OBJ_pkcs,5L,4L
   1.905 +
   1.906 +#define SN_pbeWithMD5AndRC2_CBC		"PBE-MD5-RC2-64"
   1.907 +#define LN_pbeWithMD5AndRC2_CBC		"pbeWithMD5AndRC2-CBC"
   1.908 +#define NID_pbeWithMD5AndRC2_CBC	169
   1.909 +#define OBJ_pbeWithMD5AndRC2_CBC	OBJ_pkcs,5L,6L
   1.910 +
   1.911 +#define SN_pbeWithSHA1AndDES_CBC	"PBE-SHA1-DES"
   1.912 +#define LN_pbeWithSHA1AndDES_CBC	"pbeWithSHA1AndDES-CBC"
   1.913 +#define NID_pbeWithSHA1AndDES_CBC	170
   1.914 +#define OBJ_pbeWithSHA1AndDES_CBC	OBJ_pkcs,5L,10L
   1.915 +
   1.916 +/* Extension request OIDs */
   1.917 +
   1.918 +#define LN_ms_ext_req			"Microsoft Extension Request"
   1.919 +#define SN_ms_ext_req			"msExtReq"
   1.920 +#define NID_ms_ext_req			171
   1.921 +#define OBJ_ms_ext_req			1L,3L,6L,1L,4L,1L,311L,2L,1L,14L
   1.922 +
   1.923 +#define LN_ext_req			"Extension Request"
   1.924 +#define SN_ext_req			"extReq"
   1.925 +#define NID_ext_req			172
   1.926 +#define OBJ_ext_req			OBJ_pkcs9,14L
   1.927 +
   1.928 +#define SN_name				"name"
   1.929 +#define LN_name				"name"
   1.930 +#define NID_name			173
   1.931 +#define OBJ_name			OBJ_X509,41L
   1.932 +
   1.933 +#define SN_dnQualifier			"dnQualifier"
   1.934 +#define LN_dnQualifier			"dnQualifier"
   1.935 +#define NID_dnQualifier			174
   1.936 +#define OBJ_dnQualifier			OBJ_X509,46L
   1.937 +
   1.938 +#define SN_id_pe			"id-pe"
   1.939 +#define NID_id_pe			175
   1.940 +#define OBJ_id_pe			OBJ_id_pkix,1L
   1.941 +
   1.942 +#define SN_id_ad			"id-ad"
   1.943 +#define NID_id_ad			176
   1.944 +#define OBJ_id_ad			OBJ_id_pkix,48L
   1.945 +
   1.946 +#define SN_info_access			"authorityInfoAccess"
   1.947 +#define LN_info_access			"Authority Information Access"
   1.948 +#define NID_info_access			177
   1.949 +#define OBJ_info_access			OBJ_id_pe,1L
   1.950 +
   1.951 +#define SN_ad_OCSP			"OCSP"
   1.952 +#define LN_ad_OCSP			"OCSP"
   1.953 +#define NID_ad_OCSP			178
   1.954 +#define OBJ_ad_OCSP			OBJ_id_ad,1L
   1.955 +
   1.956 +#define SN_ad_ca_issuers		"caIssuers"
   1.957 +#define LN_ad_ca_issuers		"CA Issuers"
   1.958 +#define NID_ad_ca_issuers		179
   1.959 +#define OBJ_ad_ca_issuers		OBJ_id_ad,2L
   1.960 +
   1.961 +#define SN_OCSP_sign			"OCSPSigning"
   1.962 +#define LN_OCSP_sign			"OCSP Signing"
   1.963 +#define NID_OCSP_sign			180
   1.964 +#define OBJ_OCSP_sign			OBJ_id_kp,9L
   1.965 +#endif /* USE_OBJ_MAC */
   1.966 +
   1.967 +#include <openssl/bio.h>
   1.968 +#include <openssl/asn1.h>
   1.969 +
   1.970 +#define	OBJ_NAME_TYPE_UNDEF		0x00
   1.971 +#define	OBJ_NAME_TYPE_MD_METH		0x01
   1.972 +#define	OBJ_NAME_TYPE_CIPHER_METH	0x02
   1.973 +#define	OBJ_NAME_TYPE_PKEY_METH		0x03
   1.974 +#define	OBJ_NAME_TYPE_COMP_METH		0x04
   1.975 +#define	OBJ_NAME_TYPE_NUM		0x05
   1.976 +
   1.977 +#define	OBJ_NAME_ALIAS			0x8000
   1.978 +
   1.979 +#define OBJ_BSEARCH_VALUE_ON_NOMATCH		0x01
   1.980 +#define OBJ_BSEARCH_FIRST_VALUE_ON_MATCH	0x02
   1.981 +
   1.982 +
   1.983 +#ifdef  __cplusplus
   1.984 +extern "C" {
   1.985 +#endif
   1.986 +
   1.987 +typedef struct obj_name_st
   1.988 +	{
   1.989 +	int type;
   1.990 +	int alias;
   1.991 +	const char *name;
   1.992 +	const char *data;
   1.993 +	} OBJ_NAME;
   1.994 +
   1.995 +#define		OBJ_create_and_add_object(a,b,c) OBJ_create(a,b,c)
   1.996 +
   1.997 +
   1.998 +IMPORT_C int OBJ_NAME_init(void);
   1.999 +IMPORT_C int OBJ_NAME_new_index(unsigned long (*hash_func)(const char *),
  1.1000 +		       int (*cmp_func)(const char *, const char *),
  1.1001 +		       void (*free_func)(const char *, int, const char *));
  1.1002 +IMPORT_C const char *OBJ_NAME_get(const char *name,int type);
  1.1003 +IMPORT_C int OBJ_NAME_add(const char *name,int type,const char *data);
  1.1004 +IMPORT_C int OBJ_NAME_remove(const char *name,int type);
  1.1005 +IMPORT_C void OBJ_NAME_cleanup(int type); /* -1 for everything */
  1.1006 +IMPORT_C void OBJ_NAME_do_all(int type,void (*fn)(const OBJ_NAME *,void *arg),
  1.1007 +		     void *arg);
  1.1008 +IMPORT_C void OBJ_NAME_do_all_sorted(int type,void (*fn)(const OBJ_NAME *,void *arg),
  1.1009 +			    void *arg);
  1.1010 +
  1.1011 +IMPORT_C ASN1_OBJECT *	OBJ_dup(const ASN1_OBJECT *o);
  1.1012 +IMPORT_C ASN1_OBJECT *	OBJ_nid2obj(int n);
  1.1013 +IMPORT_C const char *	OBJ_nid2ln(int n);
  1.1014 +IMPORT_C const char *	OBJ_nid2sn(int n);
  1.1015 +IMPORT_C int		OBJ_obj2nid(const ASN1_OBJECT *o);
  1.1016 +IMPORT_C ASN1_OBJECT *	OBJ_txt2obj(const char *s, int no_name);
  1.1017 +IMPORT_C int	OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name);
  1.1018 +IMPORT_C int		OBJ_txt2nid(const char *s);
  1.1019 +IMPORT_C int		OBJ_ln2nid(const char *s);
  1.1020 +IMPORT_C int		OBJ_sn2nid(const char *s);
  1.1021 +IMPORT_C int		OBJ_cmp(const ASN1_OBJECT *a,const ASN1_OBJECT *b);
  1.1022 +IMPORT_C const char *	OBJ_bsearch(const char *key,const char *base,int num,int size,
  1.1023 +	int (*cmp)(const void *, const void *));
  1.1024 +IMPORT_C const char *	OBJ_bsearch_ex(const char *key,const char *base,int num,
  1.1025 +	int size, int (*cmp)(const void *, const void *), int flags);
  1.1026 +
  1.1027 +IMPORT_C int		OBJ_new_nid(int num);
  1.1028 +IMPORT_C int		OBJ_add_object(const ASN1_OBJECT *obj);
  1.1029 +IMPORT_C int		OBJ_create(const char *oid,const char *sn,const char *ln);
  1.1030 +IMPORT_C void		OBJ_cleanup(void );
  1.1031 +IMPORT_C int		OBJ_create_objects(BIO *in);
  1.1032 +
  1.1033 +/* BEGIN ERROR CODES */
  1.1034 +/* The following lines are auto generated by the script mkerr.pl. Any changes
  1.1035 + * made after this point may be overwritten when the script is next run.
  1.1036 + */
  1.1037 +IMPORT_C void ERR_load_OBJ_strings(void);
  1.1038 +
  1.1039 +/* Error codes for the OBJ functions. */
  1.1040 +
  1.1041 +/* Function codes. */
  1.1042 +#define OBJ_F_OBJ_ADD_OBJECT				 105
  1.1043 +#define OBJ_F_OBJ_CREATE				 100
  1.1044 +#define OBJ_F_OBJ_DUP					 101
  1.1045 +#define OBJ_F_OBJ_NAME_NEW_INDEX			 106
  1.1046 +#define OBJ_F_OBJ_NID2LN				 102
  1.1047 +#define OBJ_F_OBJ_NID2OBJ				 103
  1.1048 +#define OBJ_F_OBJ_NID2SN				 104
  1.1049 +
  1.1050 +/* Reason codes. */
  1.1051 +#define OBJ_R_MALLOC_FAILURE				 100
  1.1052 +#define OBJ_R_UNKNOWN_NID				 101
  1.1053 +
  1.1054 +#ifdef  __cplusplus
  1.1055 +}
  1.1056 +#endif
  1.1057 +#endif