00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059 #ifndef HEADER_OBJECTS_H
00060 #define HEADER_OBJECTS_H
00061
00062 #define USE_OBJ_MAC
00063
00064 #ifdef USE_OBJ_MAC
00065 #include <openssl/obj_mac.h>
00066 #else
00067 #define SN_undef "UNDEF"
00068 #define LN_undef "undefined"
00069 #define NID_undef 0
00070 #define OBJ_undef 0L
00071
00072 #define SN_Algorithm "Algorithm"
00073 #define LN_algorithm "algorithm"
00074 #define NID_algorithm 38
00075 #define OBJ_algorithm 1L,3L,14L,3L,2L
00076
00077 #define LN_rsadsi "rsadsi"
00078 #define NID_rsadsi 1
00079 #define OBJ_rsadsi 1L,2L,840L,113549L
00080
00081 #define LN_pkcs "pkcs"
00082 #define NID_pkcs 2
00083 #define OBJ_pkcs OBJ_rsadsi,1L
00084
00085 #define SN_md2 "MD2"
00086 #define LN_md2 "md2"
00087 #define NID_md2 3
00088 #define OBJ_md2 OBJ_rsadsi,2L,2L
00089
00090 #define SN_md5 "MD5"
00091 #define LN_md5 "md5"
00092 #define NID_md5 4
00093 #define OBJ_md5 OBJ_rsadsi,2L,5L
00094
00095 #define SN_rc4 "RC4"
00096 #define LN_rc4 "rc4"
00097 #define NID_rc4 5
00098 #define OBJ_rc4 OBJ_rsadsi,3L,4L
00099
00100 #define LN_rsaEncryption "rsaEncryption"
00101 #define NID_rsaEncryption 6
00102 #define OBJ_rsaEncryption OBJ_pkcs,1L,1L
00103
00104 #define SN_md2WithRSAEncryption "RSA-MD2"
00105 #define LN_md2WithRSAEncryption "md2WithRSAEncryption"
00106 #define NID_md2WithRSAEncryption 7
00107 #define OBJ_md2WithRSAEncryption OBJ_pkcs,1L,2L
00108
00109 #define SN_md5WithRSAEncryption "RSA-MD5"
00110 #define LN_md5WithRSAEncryption "md5WithRSAEncryption"
00111 #define NID_md5WithRSAEncryption 8
00112 #define OBJ_md5WithRSAEncryption OBJ_pkcs,1L,4L
00113
00114 #define SN_pbeWithMD2AndDES_CBC "PBE-MD2-DES"
00115 #define LN_pbeWithMD2AndDES_CBC "pbeWithMD2AndDES-CBC"
00116 #define NID_pbeWithMD2AndDES_CBC 9
00117 #define OBJ_pbeWithMD2AndDES_CBC OBJ_pkcs,5L,1L
00118
00119 #define SN_pbeWithMD5AndDES_CBC "PBE-MD5-DES"
00120 #define LN_pbeWithMD5AndDES_CBC "pbeWithMD5AndDES-CBC"
00121 #define NID_pbeWithMD5AndDES_CBC 10
00122 #define OBJ_pbeWithMD5AndDES_CBC OBJ_pkcs,5L,3L
00123
00124 #define LN_X500 "X500"
00125 #define NID_X500 11
00126 #define OBJ_X500 2L,5L
00127
00128 #define LN_X509 "X509"
00129 #define NID_X509 12
00130 #define OBJ_X509 OBJ_X500,4L
00131
00132 #define SN_commonName "CN"
00133 #define LN_commonName "commonName"
00134 #define NID_commonName 13
00135 #define OBJ_commonName OBJ_X509,3L
00136
00137 #define SN_countryName "C"
00138 #define LN_countryName "countryName"
00139 #define NID_countryName 14
00140 #define OBJ_countryName OBJ_X509,6L
00141
00142 #define SN_localityName "L"
00143 #define LN_localityName "localityName"
00144 #define NID_localityName 15
00145 #define OBJ_localityName OBJ_X509,7L
00146
00147
00148
00149
00150 #define SN_stateOrProvinceName "ST"
00151 #define LN_stateOrProvinceName "stateOrProvinceName"
00152 #define NID_stateOrProvinceName 16
00153 #define OBJ_stateOrProvinceName OBJ_X509,8L
00154
00155 #define SN_organizationName "O"
00156 #define LN_organizationName "organizationName"
00157 #define NID_organizationName 17
00158 #define OBJ_organizationName OBJ_X509,10L
00159
00160 #define SN_organizationalUnitName "OU"
00161 #define LN_organizationalUnitName "organizationalUnitName"
00162 #define NID_organizationalUnitName 18
00163 #define OBJ_organizationalUnitName OBJ_X509,11L
00164
00165 #define SN_rsa "RSA"
00166 #define LN_rsa "rsa"
00167 #define NID_rsa 19
00168 #define OBJ_rsa OBJ_X500,8L,1L,1L
00169
00170 #define LN_pkcs7 "pkcs7"
00171 #define NID_pkcs7 20
00172 #define OBJ_pkcs7 OBJ_pkcs,7L
00173
00174 #define LN_pkcs7_data "pkcs7-data"
00175 #define NID_pkcs7_data 21
00176 #define OBJ_pkcs7_data OBJ_pkcs7,1L
00177
00178 #define LN_pkcs7_signed "pkcs7-signedData"
00179 #define NID_pkcs7_signed 22
00180 #define OBJ_pkcs7_signed OBJ_pkcs7,2L
00181
00182 #define LN_pkcs7_enveloped "pkcs7-envelopedData"
00183 #define NID_pkcs7_enveloped 23
00184 #define OBJ_pkcs7_enveloped OBJ_pkcs7,3L
00185
00186 #define LN_pkcs7_signedAndEnveloped "pkcs7-signedAndEnvelopedData"
00187 #define NID_pkcs7_signedAndEnveloped 24
00188 #define OBJ_pkcs7_signedAndEnveloped OBJ_pkcs7,4L
00189
00190 #define LN_pkcs7_digest "pkcs7-digestData"
00191 #define NID_pkcs7_digest 25
00192 #define OBJ_pkcs7_digest OBJ_pkcs7,5L
00193
00194 #define LN_pkcs7_encrypted "pkcs7-encryptedData"
00195 #define NID_pkcs7_encrypted 26
00196 #define OBJ_pkcs7_encrypted OBJ_pkcs7,6L
00197
00198 #define LN_pkcs3 "pkcs3"
00199 #define NID_pkcs3 27
00200 #define OBJ_pkcs3 OBJ_pkcs,3L
00201
00202 #define LN_dhKeyAgreement "dhKeyAgreement"
00203 #define NID_dhKeyAgreement 28
00204 #define OBJ_dhKeyAgreement OBJ_pkcs3,1L
00205
00206 #define SN_des_ecb "DES-ECB"
00207 #define LN_des_ecb "des-ecb"
00208 #define NID_des_ecb 29
00209 #define OBJ_des_ecb OBJ_algorithm,6L
00210
00211 #define SN_des_cfb64 "DES-CFB"
00212 #define LN_des_cfb64 "des-cfb"
00213 #define NID_des_cfb64 30
00214
00215 #define OBJ_des_cfb64 OBJ_algorithm,9L
00216
00217 #define SN_des_cbc "DES-CBC"
00218 #define LN_des_cbc "des-cbc"
00219 #define NID_des_cbc 31
00220
00221 #define OBJ_des_cbc OBJ_algorithm,7L
00222
00223 #define SN_des_ede "DES-EDE"
00224 #define LN_des_ede "des-ede"
00225 #define NID_des_ede 32
00226
00227 #define OBJ_des_ede OBJ_algorithm,17L
00228
00229 #define SN_des_ede3 "DES-EDE3"
00230 #define LN_des_ede3 "des-ede3"
00231 #define NID_des_ede3 33
00232
00233 #define SN_idea_cbc "IDEA-CBC"
00234 #define LN_idea_cbc "idea-cbc"
00235 #define NID_idea_cbc 34
00236 #define OBJ_idea_cbc 1L,3L,6L,1L,4L,1L,188L,7L,1L,1L,2L
00237
00238 #define SN_idea_cfb64 "IDEA-CFB"
00239 #define LN_idea_cfb64 "idea-cfb"
00240 #define NID_idea_cfb64 35
00241
00242 #define SN_idea_ecb "IDEA-ECB"
00243 #define LN_idea_ecb "idea-ecb"
00244 #define NID_idea_ecb 36
00245
00246 #define SN_rc2_cbc "RC2-CBC"
00247 #define LN_rc2_cbc "rc2-cbc"
00248 #define NID_rc2_cbc 37
00249 #define OBJ_rc2_cbc OBJ_rsadsi,3L,2L
00250
00251 #define SN_rc2_ecb "RC2-ECB"
00252 #define LN_rc2_ecb "rc2-ecb"
00253 #define NID_rc2_ecb 38
00254
00255 #define SN_rc2_cfb64 "RC2-CFB"
00256 #define LN_rc2_cfb64 "rc2-cfb"
00257 #define NID_rc2_cfb64 39
00258
00259 #define SN_rc2_ofb64 "RC2-OFB"
00260 #define LN_rc2_ofb64 "rc2-ofb"
00261 #define NID_rc2_ofb64 40
00262
00263 #define SN_sha "SHA"
00264 #define LN_sha "sha"
00265 #define NID_sha 41
00266 #define OBJ_sha OBJ_algorithm,18L
00267
00268 #define SN_shaWithRSAEncryption "RSA-SHA"
00269 #define LN_shaWithRSAEncryption "shaWithRSAEncryption"
00270 #define NID_shaWithRSAEncryption 42
00271 #define OBJ_shaWithRSAEncryption OBJ_algorithm,15L
00272
00273 #define SN_des_ede_cbc "DES-EDE-CBC"
00274 #define LN_des_ede_cbc "des-ede-cbc"
00275 #define NID_des_ede_cbc 43
00276
00277 #define SN_des_ede3_cbc "DES-EDE3-CBC"
00278 #define LN_des_ede3_cbc "des-ede3-cbc"
00279 #define NID_des_ede3_cbc 44
00280 #define OBJ_des_ede3_cbc OBJ_rsadsi,3L,7L
00281
00282 #define SN_des_ofb64 "DES-OFB"
00283 #define LN_des_ofb64 "des-ofb"
00284 #define NID_des_ofb64 45
00285 #define OBJ_des_ofb64 OBJ_algorithm,8L
00286
00287 #define SN_idea_ofb64 "IDEA-OFB"
00288 #define LN_idea_ofb64 "idea-ofb"
00289 #define NID_idea_ofb64 46
00290
00291 #define LN_pkcs9 "pkcs9"
00292 #define NID_pkcs9 47
00293 #define OBJ_pkcs9 OBJ_pkcs,9L
00294
00295 #define SN_pkcs9_emailAddress "Email"
00296 #define LN_pkcs9_emailAddress "emailAddress"
00297 #define NID_pkcs9_emailAddress 48
00298 #define OBJ_pkcs9_emailAddress OBJ_pkcs9,1L
00299
00300 #define LN_pkcs9_unstructuredName "unstructuredName"
00301 #define NID_pkcs9_unstructuredName 49
00302 #define OBJ_pkcs9_unstructuredName OBJ_pkcs9,2L
00303
00304 #define LN_pkcs9_contentType "contentType"
00305 #define NID_pkcs9_contentType 50
00306 #define OBJ_pkcs9_contentType OBJ_pkcs9,3L
00307
00308 #define LN_pkcs9_messageDigest "messageDigest"
00309 #define NID_pkcs9_messageDigest 51
00310 #define OBJ_pkcs9_messageDigest OBJ_pkcs9,4L
00311
00312 #define LN_pkcs9_signingTime "signingTime"
00313 #define NID_pkcs9_signingTime 52
00314 #define OBJ_pkcs9_signingTime OBJ_pkcs9,5L
00315
00316 #define LN_pkcs9_countersignature "countersignature"
00317 #define NID_pkcs9_countersignature 53
00318 #define OBJ_pkcs9_countersignature OBJ_pkcs9,6L
00319
00320 #define LN_pkcs9_challengePassword "challengePassword"
00321 #define NID_pkcs9_challengePassword 54
00322 #define OBJ_pkcs9_challengePassword OBJ_pkcs9,7L
00323
00324 #define LN_pkcs9_unstructuredAddress "unstructuredAddress"
00325 #define NID_pkcs9_unstructuredAddress 55
00326 #define OBJ_pkcs9_unstructuredAddress OBJ_pkcs9,8L
00327
00328 #define LN_pkcs9_extCertAttributes "extendedCertificateAttributes"
00329 #define NID_pkcs9_extCertAttributes 56
00330 #define OBJ_pkcs9_extCertAttributes OBJ_pkcs9,9L
00331
00332 #define SN_netscape "Netscape"
00333 #define LN_netscape "Netscape Communications Corp."
00334 #define NID_netscape 57
00335 #define OBJ_netscape 2L,16L,840L,1L,113730L
00336
00337 #define SN_netscape_cert_extension "nsCertExt"
00338 #define LN_netscape_cert_extension "Netscape Certificate Extension"
00339 #define NID_netscape_cert_extension 58
00340 #define OBJ_netscape_cert_extension OBJ_netscape,1L
00341
00342 #define SN_netscape_data_type "nsDataType"
00343 #define LN_netscape_data_type "Netscape Data Type"
00344 #define NID_netscape_data_type 59
00345 #define OBJ_netscape_data_type OBJ_netscape,2L
00346
00347 #define SN_des_ede_cfb64 "DES-EDE-CFB"
00348 #define LN_des_ede_cfb64 "des-ede-cfb"
00349 #define NID_des_ede_cfb64 60
00350
00351 #define SN_des_ede3_cfb64 "DES-EDE3-CFB"
00352 #define LN_des_ede3_cfb64 "des-ede3-cfb"
00353 #define NID_des_ede3_cfb64 61
00354
00355 #define SN_des_ede_ofb64 "DES-EDE-OFB"
00356 #define LN_des_ede_ofb64 "des-ede-ofb"
00357 #define NID_des_ede_ofb64 62
00358
00359 #define SN_des_ede3_ofb64 "DES-EDE3-OFB"
00360 #define LN_des_ede3_ofb64 "des-ede3-ofb"
00361 #define NID_des_ede3_ofb64 63
00362
00363
00364 #define SN_sha1 "SHA1"
00365 #define LN_sha1 "sha1"
00366 #define NID_sha1 64
00367 #define OBJ_sha1 OBJ_algorithm,26L
00368
00369
00370
00371 #define SN_sha1WithRSAEncryption "RSA-SHA1"
00372 #define LN_sha1WithRSAEncryption "sha1WithRSAEncryption"
00373 #define NID_sha1WithRSAEncryption 65
00374 #define OBJ_sha1WithRSAEncryption OBJ_pkcs,1L,5L
00375
00376 #define SN_dsaWithSHA "DSA-SHA"
00377 #define LN_dsaWithSHA "dsaWithSHA"
00378 #define NID_dsaWithSHA 66
00379 #define OBJ_dsaWithSHA OBJ_algorithm,13L
00380
00381 #define SN_dsa_2 "DSA-old"
00382 #define LN_dsa_2 "dsaEncryption-old"
00383 #define NID_dsa_2 67
00384 #define OBJ_dsa_2 OBJ_algorithm,12L
00385
00386
00387 #define SN_pbeWithSHA1AndRC2_CBC "PBE-SHA1-RC2-64"
00388 #define LN_pbeWithSHA1AndRC2_CBC "pbeWithSHA1AndRC2-CBC"
00389 #define NID_pbeWithSHA1AndRC2_CBC 68
00390 #define OBJ_pbeWithSHA1AndRC2_CBC OBJ_pkcs,5L,11L
00391
00392
00393
00394
00395
00396 #define LN_id_pbkdf2 "PBKDF2"
00397 #define NID_id_pbkdf2 69
00398 #define OBJ_id_pbkdf2 OBJ_pkcs,5L,12L
00399
00400 #define SN_dsaWithSHA1_2 "DSA-SHA1-old"
00401 #define LN_dsaWithSHA1_2 "dsaWithSHA1-old"
00402 #define NID_dsaWithSHA1_2 70
00403
00404 #define OBJ_dsaWithSHA1_2 OBJ_algorithm,27L
00405
00406 #define SN_netscape_cert_type "nsCertType"
00407 #define LN_netscape_cert_type "Netscape Cert Type"
00408 #define NID_netscape_cert_type 71
00409 #define OBJ_netscape_cert_type OBJ_netscape_cert_extension,1L
00410
00411 #define SN_netscape_base_url "nsBaseUrl"
00412 #define LN_netscape_base_url "Netscape Base Url"
00413 #define NID_netscape_base_url 72
00414 #define OBJ_netscape_base_url OBJ_netscape_cert_extension,2L
00415
00416 #define SN_netscape_revocation_url "nsRevocationUrl"
00417 #define LN_netscape_revocation_url "Netscape Revocation Url"
00418 #define NID_netscape_revocation_url 73
00419 #define OBJ_netscape_revocation_url OBJ_netscape_cert_extension,3L
00420
00421 #define SN_netscape_ca_revocation_url "nsCaRevocationUrl"
00422 #define LN_netscape_ca_revocation_url "Netscape CA Revocation Url"
00423 #define NID_netscape_ca_revocation_url 74
00424 #define OBJ_netscape_ca_revocation_url OBJ_netscape_cert_extension,4L
00425
00426 #define SN_netscape_renewal_url "nsRenewalUrl"
00427 #define LN_netscape_renewal_url "Netscape Renewal Url"
00428 #define NID_netscape_renewal_url 75
00429 #define OBJ_netscape_renewal_url OBJ_netscape_cert_extension,7L
00430
00431 #define SN_netscape_ca_policy_url "nsCaPolicyUrl"
00432 #define LN_netscape_ca_policy_url "Netscape CA Policy Url"
00433 #define NID_netscape_ca_policy_url 76
00434 #define OBJ_netscape_ca_policy_url OBJ_netscape_cert_extension,8L
00435
00436 #define SN_netscape_ssl_server_name "nsSslServerName"
00437 #define LN_netscape_ssl_server_name "Netscape SSL Server Name"
00438 #define NID_netscape_ssl_server_name 77
00439 #define OBJ_netscape_ssl_server_name OBJ_netscape_cert_extension,12L
00440
00441 #define SN_netscape_comment "nsComment"
00442 #define LN_netscape_comment "Netscape Comment"
00443 #define NID_netscape_comment 78
00444 #define OBJ_netscape_comment OBJ_netscape_cert_extension,13L
00445
00446 #define SN_netscape_cert_sequence "nsCertSequence"
00447 #define LN_netscape_cert_sequence "Netscape Certificate Sequence"
00448 #define NID_netscape_cert_sequence 79
00449 #define OBJ_netscape_cert_sequence OBJ_netscape_data_type,5L
00450
00451 #define SN_desx_cbc "DESX-CBC"
00452 #define LN_desx_cbc "desx-cbc"
00453 #define NID_desx_cbc 80
00454
00455 #define SN_id_ce "id-ce"
00456 #define NID_id_ce 81
00457 #define OBJ_id_ce 2L,5L,29L
00458
00459 #define SN_subject_key_identifier "subjectKeyIdentifier"
00460 #define LN_subject_key_identifier "X509v3 Subject Key Identifier"
00461 #define NID_subject_key_identifier 82
00462 #define OBJ_subject_key_identifier OBJ_id_ce,14L
00463
00464 #define SN_key_usage "keyUsage"
00465 #define LN_key_usage "X509v3 Key Usage"
00466 #define NID_key_usage 83
00467 #define OBJ_key_usage OBJ_id_ce,15L
00468
00469 #define SN_private_key_usage_period "privateKeyUsagePeriod"
00470 #define LN_private_key_usage_period "X509v3 Private Key Usage Period"
00471 #define NID_private_key_usage_period 84
00472 #define OBJ_private_key_usage_period OBJ_id_ce,16L
00473
00474 #define SN_subject_alt_name "subjectAltName"
00475 #define LN_subject_alt_name "X509v3 Subject Alternative Name"
00476 #define NID_subject_alt_name 85
00477 #define OBJ_subject_alt_name OBJ_id_ce,17L
00478
00479 #define SN_issuer_alt_name "issuerAltName"
00480 #define LN_issuer_alt_name "X509v3 Issuer Alternative Name"
00481 #define NID_issuer_alt_name 86
00482 #define OBJ_issuer_alt_name OBJ_id_ce,18L
00483
00484 #define SN_basic_constraints "basicConstraints"
00485 #define LN_basic_constraints "X509v3 Basic Constraints"
00486 #define NID_basic_constraints 87
00487 #define OBJ_basic_constraints OBJ_id_ce,19L
00488
00489 #define SN_crl_number "crlNumber"
00490 #define LN_crl_number "X509v3 CRL Number"
00491 #define NID_crl_number 88
00492 #define OBJ_crl_number OBJ_id_ce,20L
00493
00494 #define SN_certificate_policies "certificatePolicies"
00495 #define LN_certificate_policies "X509v3 Certificate Policies"
00496 #define NID_certificate_policies 89
00497 #define OBJ_certificate_policies OBJ_id_ce,32L
00498
00499 #define SN_authority_key_identifier "authorityKeyIdentifier"
00500 #define LN_authority_key_identifier "X509v3 Authority Key Identifier"
00501 #define NID_authority_key_identifier 90
00502 #define OBJ_authority_key_identifier OBJ_id_ce,35L
00503
00504 #define SN_bf_cbc "BF-CBC"
00505 #define LN_bf_cbc "bf-cbc"
00506 #define NID_bf_cbc 91
00507 #define OBJ_bf_cbc 1L,3L,6L,1L,4L,1L,3029L,1L,2L
00508
00509 #define SN_bf_ecb "BF-ECB"
00510 #define LN_bf_ecb "bf-ecb"
00511 #define NID_bf_ecb 92
00512
00513 #define SN_bf_cfb64 "BF-CFB"
00514 #define LN_bf_cfb64 "bf-cfb"
00515 #define NID_bf_cfb64 93
00516
00517 #define SN_bf_ofb64 "BF-OFB"
00518 #define LN_bf_ofb64 "bf-ofb"
00519 #define NID_bf_ofb64 94
00520
00521 #define SN_mdc2 "MDC2"
00522 #define LN_mdc2 "mdc2"
00523 #define NID_mdc2 95
00524 #define OBJ_mdc2 2L,5L,8L,3L,101L
00525
00526
00527 #define SN_mdc2WithRSA "RSA-MDC2"
00528 #define LN_mdc2WithRSA "mdc2withRSA"
00529 #define NID_mdc2WithRSA 96
00530 #define OBJ_mdc2WithRSA 2L,5L,8L,3L,100L
00531
00532 #define SN_rc4_40 "RC4-40"
00533 #define LN_rc4_40 "rc4-40"
00534 #define NID_rc4_40 97
00535
00536 #define SN_rc2_40_cbc "RC2-40-CBC"
00537 #define LN_rc2_40_cbc "rc2-40-cbc"
00538 #define NID_rc2_40_cbc 98
00539
00540 #define SN_givenName "G"
00541 #define LN_givenName "givenName"
00542 #define NID_givenName 99
00543 #define OBJ_givenName OBJ_X509,42L
00544
00545 #define SN_surname "S"
00546 #define LN_surname "surname"
00547 #define NID_surname 100
00548 #define OBJ_surname OBJ_X509,4L
00549
00550 #define SN_initials "I"
00551 #define LN_initials "initials"
00552 #define NID_initials 101
00553 #define OBJ_initials OBJ_X509,43L
00554
00555 #define SN_uniqueIdentifier "UID"
00556 #define LN_uniqueIdentifier "uniqueIdentifier"
00557 #define NID_uniqueIdentifier 102
00558 #define OBJ_uniqueIdentifier OBJ_X509,45L
00559
00560 #define SN_crl_distribution_points "crlDistributionPoints"
00561 #define LN_crl_distribution_points "X509v3 CRL Distribution Points"
00562 #define NID_crl_distribution_points 103
00563 #define OBJ_crl_distribution_points OBJ_id_ce,31L
00564
00565 #define SN_md5WithRSA "RSA-NP-MD5"
00566 #define LN_md5WithRSA "md5WithRSA"
00567 #define NID_md5WithRSA 104
00568 #define OBJ_md5WithRSA OBJ_algorithm,3L
00569
00570 #define SN_serialNumber "SN"
00571 #define LN_serialNumber "serialNumber"
00572 #define NID_serialNumber 105
00573 #define OBJ_serialNumber OBJ_X509,5L
00574
00575 #define SN_title "T"
00576 #define LN_title "title"
00577 #define NID_title 106
00578 #define OBJ_title OBJ_X509,12L
00579
00580 #define SN_description "D"
00581 #define LN_description "description"
00582 #define NID_description 107
00583 #define OBJ_description OBJ_X509,13L
00584
00585
00586 #define SN_cast5_cbc "CAST5-CBC"
00587 #define LN_cast5_cbc "cast5-cbc"
00588 #define NID_cast5_cbc 108
00589 #define OBJ_cast5_cbc 1L,2L,840L,113533L,7L,66L,10L
00590
00591 #define SN_cast5_ecb "CAST5-ECB"
00592 #define LN_cast5_ecb "cast5-ecb"
00593 #define NID_cast5_ecb 109
00594
00595 #define SN_cast5_cfb64 "CAST5-CFB"
00596 #define LN_cast5_cfb64 "cast5-cfb"
00597 #define NID_cast5_cfb64 110
00598
00599 #define SN_cast5_ofb64 "CAST5-OFB"
00600 #define LN_cast5_ofb64 "cast5-ofb"
00601 #define NID_cast5_ofb64 111
00602
00603 #define LN_pbeWithMD5AndCast5_CBC "pbeWithMD5AndCast5CBC"
00604 #define NID_pbeWithMD5AndCast5_CBC 112
00605 #define OBJ_pbeWithMD5AndCast5_CBC 1L,2L,840L,113533L,7L,66L,12L
00606
00607
00608
00609
00610
00611 #define SN_dsaWithSHA1 "DSA-SHA1"
00612 #define LN_dsaWithSHA1 "dsaWithSHA1"
00613 #define NID_dsaWithSHA1 113
00614 #define OBJ_dsaWithSHA1 1L,2L,840L,10040L,4L,3L
00615
00616 #define NID_md5_sha1 114
00617 #define SN_md5_sha1 "MD5-SHA1"
00618 #define LN_md5_sha1 "md5-sha1"
00619
00620 #define SN_sha1WithRSA "RSA-SHA1-2"
00621 #define LN_sha1WithRSA "sha1WithRSA"
00622 #define NID_sha1WithRSA 115
00623 #define OBJ_sha1WithRSA OBJ_algorithm,29L
00624
00625 #define SN_dsa "DSA"
00626 #define LN_dsa "dsaEncryption"
00627 #define NID_dsa 116
00628 #define OBJ_dsa 1L,2L,840L,10040L,4L,1L
00629
00630 #define SN_ripemd160 "RIPEMD160"
00631 #define LN_ripemd160 "ripemd160"
00632 #define NID_ripemd160 117
00633 #define OBJ_ripemd160 1L,3L,36L,3L,2L,1L
00634
00635
00636
00637 #define SN_ripemd160WithRSA "RSA-RIPEMD160"
00638 #define LN_ripemd160WithRSA "ripemd160WithRSA"
00639 #define NID_ripemd160WithRSA 119
00640 #define OBJ_ripemd160WithRSA 1L,3L,36L,3L,3L,1L,2L
00641
00642
00643
00644
00645
00646
00647
00648
00649
00650 #define SN_rc5_cbc "RC5-CBC"
00651 #define LN_rc5_cbc "rc5-cbc"
00652 #define NID_rc5_cbc 120
00653 #define OBJ_rc5_cbc OBJ_rsadsi,3L,8L
00654
00655 #define SN_rc5_ecb "RC5-ECB"
00656 #define LN_rc5_ecb "rc5-ecb"
00657 #define NID_rc5_ecb 121
00658
00659 #define SN_rc5_cfb64 "RC5-CFB"
00660 #define LN_rc5_cfb64 "rc5-cfb"
00661 #define NID_rc5_cfb64 122
00662
00663 #define SN_rc5_ofb64 "RC5-OFB"
00664 #define LN_rc5_ofb64 "rc5-ofb"
00665 #define NID_rc5_ofb64 123
00666
00667 #define SN_rle_compression "RLE"
00668 #define LN_rle_compression "run length compression"
00669 #define NID_rle_compression 124
00670 #define OBJ_rle_compression 1L,1L,1L,1L,666L,1L
00671
00672 #define SN_zlib_compression "ZLIB"
00673 #define LN_zlib_compression "zlib compression"
00674 #define NID_zlib_compression 125
00675 #define OBJ_zlib_compression 1L,1L,1L,1L,666L,2L
00676
00677 #define SN_ext_key_usage "extendedKeyUsage"
00678 #define LN_ext_key_usage "X509v3 Extended Key Usage"
00679 #define NID_ext_key_usage 126
00680 #define OBJ_ext_key_usage OBJ_id_ce,37
00681
00682 #define SN_id_pkix "PKIX"
00683 #define NID_id_pkix 127
00684 #define OBJ_id_pkix 1L,3L,6L,1L,5L,5L,7L
00685
00686 #define SN_id_kp "id-kp"
00687 #define NID_id_kp 128
00688 #define OBJ_id_kp OBJ_id_pkix,3L
00689
00690
00691
00692 #define SN_server_auth "serverAuth"
00693 #define LN_server_auth "TLS Web Server Authentication"
00694 #define NID_server_auth 129
00695 #define OBJ_server_auth OBJ_id_kp,1L
00696
00697 #define SN_client_auth "clientAuth"
00698 #define LN_client_auth "TLS Web Client Authentication"
00699 #define NID_client_auth 130
00700 #define OBJ_client_auth OBJ_id_kp,2L
00701
00702 #define SN_code_sign "codeSigning"
00703 #define LN_code_sign "Code Signing"
00704 #define NID_code_sign 131
00705 #define OBJ_code_sign OBJ_id_kp,3L
00706
00707 #define SN_email_protect "emailProtection"
00708 #define LN_email_protect "E-mail Protection"
00709 #define NID_email_protect 132
00710 #define OBJ_email_protect OBJ_id_kp,4L
00711
00712 #define SN_time_stamp "timeStamping"
00713 #define LN_time_stamp "Time Stamping"
00714 #define NID_time_stamp 133
00715 #define OBJ_time_stamp OBJ_id_kp,8L
00716
00717
00718
00719 #define SN_ms_code_ind "msCodeInd"
00720 #define LN_ms_code_ind "Microsoft Individual Code Signing"
00721 #define NID_ms_code_ind 134
00722 #define OBJ_ms_code_ind 1L,3L,6L,1L,4L,1L,311L,2L,1L,21L
00723
00724 #define SN_ms_code_com "msCodeCom"
00725 #define LN_ms_code_com "Microsoft Commercial Code Signing"
00726 #define NID_ms_code_com 135
00727 #define OBJ_ms_code_com 1L,3L,6L,1L,4L,1L,311L,2L,1L,22L
00728
00729 #define SN_ms_ctl_sign "msCTLSign"
00730 #define LN_ms_ctl_sign "Microsoft Trust List Signing"
00731 #define NID_ms_ctl_sign 136
00732 #define OBJ_ms_ctl_sign 1L,3L,6L,1L,4L,1L,311L,10L,3L,1L
00733
00734 #define SN_ms_sgc "msSGC"
00735 #define LN_ms_sgc "Microsoft Server Gated Crypto"
00736 #define NID_ms_sgc 137
00737 #define OBJ_ms_sgc 1L,3L,6L,1L,4L,1L,311L,10L,3L,3L
00738
00739 #define SN_ms_efs "msEFS"
00740 #define LN_ms_efs "Microsoft Encrypted File System"
00741 #define NID_ms_efs 138
00742 #define OBJ_ms_efs 1L,3L,6L,1L,4L,1L,311L,10L,3L,4L
00743
00744
00745
00746 #define SN_ns_sgc "nsSGC"
00747 #define LN_ns_sgc "Netscape Server Gated Crypto"
00748 #define NID_ns_sgc 139
00749 #define OBJ_ns_sgc OBJ_netscape,4L,1L
00750
00751 #define SN_delta_crl "deltaCRL"
00752 #define LN_delta_crl "X509v3 Delta CRL Indicator"
00753 #define NID_delta_crl 140
00754 #define OBJ_delta_crl OBJ_id_ce,27L
00755
00756 #define SN_crl_reason "CRLReason"
00757 #define LN_crl_reason "CRL Reason Code"
00758 #define NID_crl_reason 141
00759 #define OBJ_crl_reason OBJ_id_ce,21L
00760
00761 #define SN_invalidity_date "invalidityDate"
00762 #define LN_invalidity_date "Invalidity Date"
00763 #define NID_invalidity_date 142
00764 #define OBJ_invalidity_date OBJ_id_ce,24L
00765
00766 #define SN_sxnet "SXNetID"
00767 #define LN_sxnet "Strong Extranet ID"
00768 #define NID_sxnet 143
00769 #define OBJ_sxnet 1L,3L,101L,1L,4L,1L
00770
00771
00772
00773 #define OBJ_pkcs12 OBJ_pkcs,12L
00774 #define OBJ_pkcs12_pbeids OBJ_pkcs12, 1
00775
00776 #define SN_pbe_WithSHA1And128BitRC4 "PBE-SHA1-RC4-128"
00777 #define LN_pbe_WithSHA1And128BitRC4 "pbeWithSHA1And128BitRC4"
00778 #define NID_pbe_WithSHA1And128BitRC4 144
00779 #define OBJ_pbe_WithSHA1And128BitRC4 OBJ_pkcs12_pbeids, 1L
00780
00781 #define SN_pbe_WithSHA1And40BitRC4 "PBE-SHA1-RC4-40"
00782 #define LN_pbe_WithSHA1And40BitRC4 "pbeWithSHA1And40BitRC4"
00783 #define NID_pbe_WithSHA1And40BitRC4 145
00784 #define OBJ_pbe_WithSHA1And40BitRC4 OBJ_pkcs12_pbeids, 2L
00785
00786 #define SN_pbe_WithSHA1And3_Key_TripleDES_CBC "PBE-SHA1-3DES"
00787 #define LN_pbe_WithSHA1And3_Key_TripleDES_CBC "pbeWithSHA1And3-KeyTripleDES-CBC"
00788 #define NID_pbe_WithSHA1And3_Key_TripleDES_CBC 146
00789 #define OBJ_pbe_WithSHA1And3_Key_TripleDES_CBC OBJ_pkcs12_pbeids, 3L
00790
00791 #define SN_pbe_WithSHA1And2_Key_TripleDES_CBC "PBE-SHA1-2DES"
00792 #define LN_pbe_WithSHA1And2_Key_TripleDES_CBC "pbeWithSHA1And2-KeyTripleDES-CBC"
00793 #define NID_pbe_WithSHA1And2_Key_TripleDES_CBC 147
00794 #define OBJ_pbe_WithSHA1And2_Key_TripleDES_CBC OBJ_pkcs12_pbeids, 4L
00795
00796 #define SN_pbe_WithSHA1And128BitRC2_CBC "PBE-SHA1-RC2-128"
00797 #define LN_pbe_WithSHA1And128BitRC2_CBC "pbeWithSHA1And128BitRC2-CBC"
00798 #define NID_pbe_WithSHA1And128BitRC2_CBC 148
00799 #define OBJ_pbe_WithSHA1And128BitRC2_CBC OBJ_pkcs12_pbeids, 5L
00800
00801 #define SN_pbe_WithSHA1And40BitRC2_CBC "PBE-SHA1-RC2-40"
00802 #define LN_pbe_WithSHA1And40BitRC2_CBC "pbeWithSHA1And40BitRC2-CBC"
00803 #define NID_pbe_WithSHA1And40BitRC2_CBC 149
00804 #define OBJ_pbe_WithSHA1And40BitRC2_CBC OBJ_pkcs12_pbeids, 6L
00805
00806 #define OBJ_pkcs12_Version1 OBJ_pkcs12, 10L
00807
00808 #define OBJ_pkcs12_BagIds OBJ_pkcs12_Version1, 1L
00809
00810 #define LN_keyBag "keyBag"
00811 #define NID_keyBag 150
00812 #define OBJ_keyBag OBJ_pkcs12_BagIds, 1L
00813
00814 #define LN_pkcs8ShroudedKeyBag "pkcs8ShroudedKeyBag"
00815 #define NID_pkcs8ShroudedKeyBag 151
00816 #define OBJ_pkcs8ShroudedKeyBag OBJ_pkcs12_BagIds, 2L
00817
00818 #define LN_certBag "certBag"
00819 #define NID_certBag 152
00820 #define OBJ_certBag OBJ_pkcs12_BagIds, 3L
00821
00822 #define LN_crlBag "crlBag"
00823 #define NID_crlBag 153
00824 #define OBJ_crlBag OBJ_pkcs12_BagIds, 4L
00825
00826 #define LN_secretBag "secretBag"
00827 #define NID_secretBag 154
00828 #define OBJ_secretBag OBJ_pkcs12_BagIds, 5L
00829
00830 #define LN_safeContentsBag "safeContentsBag"
00831 #define NID_safeContentsBag 155
00832 #define OBJ_safeContentsBag OBJ_pkcs12_BagIds, 6L
00833
00834 #define LN_friendlyName "friendlyName"
00835 #define NID_friendlyName 156
00836 #define OBJ_friendlyName OBJ_pkcs9, 20L
00837
00838 #define LN_localKeyID "localKeyID"
00839 #define NID_localKeyID 157
00840 #define OBJ_localKeyID OBJ_pkcs9, 21L
00841
00842 #define OBJ_certTypes OBJ_pkcs9, 22L
00843
00844 #define LN_x509Certificate "x509Certificate"
00845 #define NID_x509Certificate 158
00846 #define OBJ_x509Certificate OBJ_certTypes, 1L
00847
00848 #define LN_sdsiCertificate "sdsiCertificate"
00849 #define NID_sdsiCertificate 159
00850 #define OBJ_sdsiCertificate OBJ_certTypes, 2L
00851
00852 #define OBJ_crlTypes OBJ_pkcs9, 23L
00853
00854 #define LN_x509Crl "x509Crl"
00855 #define NID_x509Crl 160
00856 #define OBJ_x509Crl OBJ_crlTypes, 1L
00857
00858
00859
00860 #define LN_pbes2 "PBES2"
00861 #define NID_pbes2 161
00862 #define OBJ_pbes2 OBJ_pkcs,5L,13L
00863
00864 #define LN_pbmac1 "PBMAC1"
00865 #define NID_pbmac1 162
00866 #define OBJ_pbmac1 OBJ_pkcs,5L,14L
00867
00868 #define LN_hmacWithSHA1 "hmacWithSHA1"
00869 #define NID_hmacWithSHA1 163
00870 #define OBJ_hmacWithSHA1 OBJ_rsadsi,2L,7L
00871
00872
00873
00874 #define LN_id_qt_cps "Policy Qualifier CPS"
00875 #define SN_id_qt_cps "id-qt-cps"
00876 #define NID_id_qt_cps 164
00877 #define OBJ_id_qt_cps OBJ_id_pkix,2L,1L
00878
00879 #define LN_id_qt_unotice "Policy Qualifier User Notice"
00880 #define SN_id_qt_unotice "id-qt-unotice"
00881 #define NID_id_qt_unotice 165
00882 #define OBJ_id_qt_unotice OBJ_id_pkix,2L,2L
00883
00884 #define SN_rc2_64_cbc "RC2-64-CBC"
00885 #define LN_rc2_64_cbc "rc2-64-cbc"
00886 #define NID_rc2_64_cbc 166
00887
00888 #define SN_SMIMECapabilities "SMIME-CAPS"
00889 #define LN_SMIMECapabilities "S/MIME Capabilities"
00890 #define NID_SMIMECapabilities 167
00891 #define OBJ_SMIMECapabilities OBJ_pkcs9,15L
00892
00893 #define SN_pbeWithMD2AndRC2_CBC "PBE-MD2-RC2-64"
00894 #define LN_pbeWithMD2AndRC2_CBC "pbeWithMD2AndRC2-CBC"
00895 #define NID_pbeWithMD2AndRC2_CBC 168
00896 #define OBJ_pbeWithMD2AndRC2_CBC OBJ_pkcs,5L,4L
00897
00898 #define SN_pbeWithMD5AndRC2_CBC "PBE-MD5-RC2-64"
00899 #define LN_pbeWithMD5AndRC2_CBC "pbeWithMD5AndRC2-CBC"
00900 #define NID_pbeWithMD5AndRC2_CBC 169
00901 #define OBJ_pbeWithMD5AndRC2_CBC OBJ_pkcs,5L,6L
00902
00903 #define SN_pbeWithSHA1AndDES_CBC "PBE-SHA1-DES"
00904 #define LN_pbeWithSHA1AndDES_CBC "pbeWithSHA1AndDES-CBC"
00905 #define NID_pbeWithSHA1AndDES_CBC 170
00906 #define OBJ_pbeWithSHA1AndDES_CBC OBJ_pkcs,5L,10L
00907
00908
00909
00910 #define LN_ms_ext_req "Microsoft Extension Request"
00911 #define SN_ms_ext_req "msExtReq"
00912 #define NID_ms_ext_req 171
00913 #define OBJ_ms_ext_req 1L,3L,6L,1L,4L,1L,311L,2L,1L,14L
00914
00915 #define LN_ext_req "Extension Request"
00916 #define SN_ext_req "extReq"
00917 #define NID_ext_req 172
00918 #define OBJ_ext_req OBJ_pkcs9,14L
00919
00920 #define SN_name "name"
00921 #define LN_name "name"
00922 #define NID_name 173
00923 #define OBJ_name OBJ_X509,41L
00924
00925 #define SN_dnQualifier "dnQualifier"
00926 #define LN_dnQualifier "dnQualifier"
00927 #define NID_dnQualifier 174
00928 #define OBJ_dnQualifier OBJ_X509,46L
00929
00930 #define SN_id_pe "id-pe"
00931 #define NID_id_pe 175
00932 #define OBJ_id_pe OBJ_id_pkix,1L
00933
00934 #define SN_id_ad "id-ad"
00935 #define NID_id_ad 176
00936 #define OBJ_id_ad OBJ_id_pkix,48L
00937
00938 #define SN_info_access "authorityInfoAccess"
00939 #define LN_info_access "Authority Information Access"
00940 #define NID_info_access 177
00941 #define OBJ_info_access OBJ_id_pe,1L
00942
00943 #define SN_ad_OCSP "OCSP"
00944 #define LN_ad_OCSP "OCSP"
00945 #define NID_ad_OCSP 178
00946 #define OBJ_ad_OCSP OBJ_id_ad,1L
00947
00948 #define SN_ad_ca_issuers "caIssuers"
00949 #define LN_ad_ca_issuers "CA Issuers"
00950 #define NID_ad_ca_issuers 179
00951 #define OBJ_ad_ca_issuers OBJ_id_ad,2L
00952
00953 #define SN_OCSP_sign "OCSPSigning"
00954 #define LN_OCSP_sign "OCSP Signing"
00955 #define NID_OCSP_sign 180
00956 #define OBJ_OCSP_sign OBJ_id_kp,9L
00957 #endif
00958
00959 #include <openssl/bio.h>
00960 #include <openssl/asn1.h>
00961
00962 #define OBJ_NAME_TYPE_UNDEF 0x00
00963 #define OBJ_NAME_TYPE_MD_METH 0x01
00964 #define OBJ_NAME_TYPE_CIPHER_METH 0x02
00965 #define OBJ_NAME_TYPE_PKEY_METH 0x03
00966 #define OBJ_NAME_TYPE_COMP_METH 0x04
00967 #define OBJ_NAME_TYPE_NUM 0x05
00968
00969 #define OBJ_NAME_ALIAS 0x8000
00970
00971 #define OBJ_BSEARCH_VALUE_ON_NOMATCH 0x01
00972 #define OBJ_BSEARCH_FIRST_VALUE_ON_MATCH 0x02
00973
00974
00975 #ifdef __cplusplus
00976 extern "C" {
00977 #endif
00978
00979 typedef struct obj_name_st
00980 {
00981 int type;
00982 int alias;
00983 const char *name;
00984 const char *data;
00985 } OBJ_NAME;
00986
00987 #define OBJ_create_and_add_object(a,b,c) OBJ_create(a,b,c)
00988
00989
00990 int OBJ_NAME_init(void);
00991 int OBJ_NAME_new_index(unsigned long (*hash_func)(const char *),
00992 int (*cmp_func)(const char *, const char *),
00993 void (*free_func)(const char *, int, const char *));
00994 const char *OBJ_NAME_get(const char *name,int type);
00995 int OBJ_NAME_add(const char *name,int type,const char *data);
00996 int OBJ_NAME_remove(const char *name,int type);
00997 void OBJ_NAME_cleanup(int type);
00998 void OBJ_NAME_do_all(int type,void (*fn)(const OBJ_NAME *,void *arg),
00999 void *arg);
01000 void OBJ_NAME_do_all_sorted(int type,void (*fn)(const OBJ_NAME *,void *arg),
01001 void *arg);
01002
01003 ASN1_OBJECT * OBJ_dup(const ASN1_OBJECT *o);
01004 ASN1_OBJECT * OBJ_nid2obj(int n);
01005 const char * OBJ_nid2ln(int n);
01006 const char * OBJ_nid2sn(int n);
01007 int OBJ_obj2nid(const ASN1_OBJECT *o);
01008 ASN1_OBJECT * OBJ_txt2obj(const char *s, int no_name);
01009 int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name);
01010 int OBJ_txt2nid(const char *s);
01011 int OBJ_ln2nid(const char *s);
01012 int OBJ_sn2nid(const char *s);
01013 int OBJ_cmp(const ASN1_OBJECT *a,const ASN1_OBJECT *b);
01014 const char * OBJ_bsearch(const char *key,const char *base,int num,int size,
01015 int (*cmp)(const void *, const void *));
01016 const char * OBJ_bsearch_ex(const char *key,const char *base,int num,
01017 int size, int (*cmp)(const void *, const void *), int flags);
01018
01019 int OBJ_new_nid(int num);
01020 int OBJ_add_object(const ASN1_OBJECT *obj);
01021 int OBJ_create(const char *oid,const char *sn,const char *ln);
01022 void OBJ_cleanup(void );
01023 int OBJ_create_objects(BIO *in);
01024
01025
01026
01027
01028
01029 void ERR_load_OBJ_strings(void);
01030
01031
01032
01033
01034 #define OBJ_F_OBJ_ADD_OBJECT 105
01035 #define OBJ_F_OBJ_CREATE 100
01036 #define OBJ_F_OBJ_DUP 101
01037 #define OBJ_F_OBJ_NAME_NEW_INDEX 106
01038 #define OBJ_F_OBJ_NID2LN 102
01039 #define OBJ_F_OBJ_NID2OBJ 103
01040 #define OBJ_F_OBJ_NID2SN 104
01041
01042
01043 #define OBJ_R_MALLOC_FAILURE 100
01044 #define OBJ_R_UNKNOWN_NID 101
01045
01046 #ifdef __cplusplus
01047 }
01048 #endif
01049 #endif