diff options
| author | djm <> | 2006-06-27 05:05:42 +0000 |
|---|---|---|
| committer | djm <> | 2006-06-27 05:05:42 +0000 |
| commit | f6198d4d0ab97685dc56be2d48715ed39fcc74b9 (patch) | |
| tree | 6e28360095ed5ba5ef1760a419c43eef4ef6946b /src/lib/libcrypto/objects | |
| parent | 0ff0f9d99c40072de315264b0f602bd639e7f662 (diff) | |
| download | openbsd-f6198d4d0ab97685dc56be2d48715ed39fcc74b9.tar.gz openbsd-f6198d4d0ab97685dc56be2d48715ed39fcc74b9.tar.bz2 openbsd-f6198d4d0ab97685dc56be2d48715ed39fcc74b9.zip | |
import of openssl-0.9.7j
Diffstat (limited to 'src/lib/libcrypto/objects')
| -rw-r--r-- | src/lib/libcrypto/objects/obj_err.c | 28 | ||||
| -rw-r--r-- | src/lib/libcrypto/objects/obj_mac.num | 16 | ||||
| -rw-r--r-- | src/lib/libcrypto/objects/objects.txt | 20 |
3 files changed, 45 insertions, 19 deletions
diff --git a/src/lib/libcrypto/objects/obj_err.c b/src/lib/libcrypto/objects/obj_err.c index 2b5f43e3cc..0682979b38 100644 --- a/src/lib/libcrypto/objects/obj_err.c +++ b/src/lib/libcrypto/objects/obj_err.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* crypto/objects/obj_err.c */ | 1 | /* crypto/objects/obj_err.c */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 1999-2004 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| 5 | * Redistribution and use in source and binary forms, with or without | 5 | * Redistribution and use in source and binary forms, with or without |
| 6 | * modification, are permitted provided that the following conditions | 6 | * modification, are permitted provided that the following conditions |
| @@ -64,22 +64,26 @@ | |||
| 64 | 64 | ||
| 65 | /* BEGIN ERROR CODES */ | 65 | /* BEGIN ERROR CODES */ |
| 66 | #ifndef OPENSSL_NO_ERR | 66 | #ifndef OPENSSL_NO_ERR |
| 67 | |||
| 68 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_OBJ,func,0) | ||
| 69 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_OBJ,0,reason) | ||
| 70 | |||
| 67 | static ERR_STRING_DATA OBJ_str_functs[]= | 71 | static ERR_STRING_DATA OBJ_str_functs[]= |
| 68 | { | 72 | { |
| 69 | {ERR_PACK(0,OBJ_F_OBJ_ADD_OBJECT,0), "OBJ_add_object"}, | 73 | {ERR_FUNC(OBJ_F_OBJ_ADD_OBJECT), "OBJ_add_object"}, |
| 70 | {ERR_PACK(0,OBJ_F_OBJ_CREATE,0), "OBJ_create"}, | 74 | {ERR_FUNC(OBJ_F_OBJ_CREATE), "OBJ_create"}, |
| 71 | {ERR_PACK(0,OBJ_F_OBJ_DUP,0), "OBJ_dup"}, | 75 | {ERR_FUNC(OBJ_F_OBJ_DUP), "OBJ_dup"}, |
| 72 | {ERR_PACK(0,OBJ_F_OBJ_NAME_NEW_INDEX,0), "OBJ_NAME_new_index"}, | 76 | {ERR_FUNC(OBJ_F_OBJ_NAME_NEW_INDEX), "OBJ_NAME_new_index"}, |
| 73 | {ERR_PACK(0,OBJ_F_OBJ_NID2LN,0), "OBJ_nid2ln"}, | 77 | {ERR_FUNC(OBJ_F_OBJ_NID2LN), "OBJ_nid2ln"}, |
| 74 | {ERR_PACK(0,OBJ_F_OBJ_NID2OBJ,0), "OBJ_nid2obj"}, | 78 | {ERR_FUNC(OBJ_F_OBJ_NID2OBJ), "OBJ_nid2obj"}, |
| 75 | {ERR_PACK(0,OBJ_F_OBJ_NID2SN,0), "OBJ_nid2sn"}, | 79 | {ERR_FUNC(OBJ_F_OBJ_NID2SN), "OBJ_nid2sn"}, |
| 76 | {0,NULL} | 80 | {0,NULL} |
| 77 | }; | 81 | }; |
| 78 | 82 | ||
| 79 | static ERR_STRING_DATA OBJ_str_reasons[]= | 83 | static ERR_STRING_DATA OBJ_str_reasons[]= |
| 80 | { | 84 | { |
| 81 | {OBJ_R_MALLOC_FAILURE ,"malloc failure"}, | 85 | {ERR_REASON(OBJ_R_MALLOC_FAILURE) ,"malloc failure"}, |
| 82 | {OBJ_R_UNKNOWN_NID ,"unknown nid"}, | 86 | {ERR_REASON(OBJ_R_UNKNOWN_NID) ,"unknown nid"}, |
| 83 | {0,NULL} | 87 | {0,NULL} |
| 84 | }; | 88 | }; |
| 85 | 89 | ||
| @@ -93,8 +97,8 @@ void ERR_load_OBJ_strings(void) | |||
| 93 | { | 97 | { |
| 94 | init=0; | 98 | init=0; |
| 95 | #ifndef OPENSSL_NO_ERR | 99 | #ifndef OPENSSL_NO_ERR |
| 96 | ERR_load_strings(ERR_LIB_OBJ,OBJ_str_functs); | 100 | ERR_load_strings(0,OBJ_str_functs); |
| 97 | ERR_load_strings(ERR_LIB_OBJ,OBJ_str_reasons); | 101 | ERR_load_strings(0,OBJ_str_reasons); |
| 98 | #endif | 102 | #endif |
| 99 | 103 | ||
| 100 | } | 104 | } |
diff --git a/src/lib/libcrypto/objects/obj_mac.num b/src/lib/libcrypto/objects/obj_mac.num index 0e64a929ba..84555d936e 100644 --- a/src/lib/libcrypto/objects/obj_mac.num +++ b/src/lib/libcrypto/objects/obj_mac.num | |||
| @@ -287,9 +287,9 @@ qcStatements 286 | |||
| 287 | ac_auditEntity 287 | 287 | ac_auditEntity 287 |
| 288 | ac_targeting 288 | 288 | ac_targeting 288 |
| 289 | aaControls 289 | 289 | aaControls 289 |
| 290 | sbqp_ipAddrBlock 290 | 290 | sbgp_ipAddrBlock 290 |
| 291 | sbqp_autonomousSysNum 291 | 291 | sbgp_autonomousSysNum 291 |
| 292 | sbqp_routerIdentifier 292 | 292 | sbgp_routerIdentifier 292 |
| 293 | textNotice 293 | 293 | textNotice 293 |
| 294 | ipsecEndSystem 294 | 294 | ipsecEndSystem 294 |
| 295 | ipsecTunnel 295 | 295 | ipsecTunnel 295 |
| @@ -663,5 +663,13 @@ id_ppl 662 | |||
| 663 | proxyCertInfo 663 | 663 | proxyCertInfo 663 |
| 664 | id_ppl_anyLanguage 664 | 664 | id_ppl_anyLanguage 664 |
| 665 | id_ppl_inheritAll 665 | 665 | id_ppl_inheritAll 665 |
| 666 | id_ppl_independent 666 | 666 | name_constraints 666 |
| 667 | Independent 667 | 667 | Independent 667 |
| 668 | sha256WithRSAEncryption 668 | ||
| 669 | sha384WithRSAEncryption 669 | ||
| 670 | sha512WithRSAEncryption 670 | ||
| 671 | sha224WithRSAEncryption 671 | ||
| 672 | sha256 672 | ||
| 673 | sha384 673 | ||
| 674 | sha512 674 | ||
| 675 | sha224 675 | ||
diff --git a/src/lib/libcrypto/objects/objects.txt b/src/lib/libcrypto/objects/objects.txt index 50e9031e61..2635c4e667 100644 --- a/src/lib/libcrypto/objects/objects.txt +++ b/src/lib/libcrypto/objects/objects.txt | |||
| @@ -63,6 +63,11 @@ pkcs1 2 : RSA-MD2 : md2WithRSAEncryption | |||
| 63 | pkcs1 3 : RSA-MD4 : md4WithRSAEncryption | 63 | pkcs1 3 : RSA-MD4 : md4WithRSAEncryption |
| 64 | pkcs1 4 : RSA-MD5 : md5WithRSAEncryption | 64 | pkcs1 4 : RSA-MD5 : md5WithRSAEncryption |
| 65 | pkcs1 5 : RSA-SHA1 : sha1WithRSAEncryption | 65 | pkcs1 5 : RSA-SHA1 : sha1WithRSAEncryption |
| 66 | # According to PKCS #1 version 2.1 | ||
| 67 | pkcs1 11 : RSA-SHA256 : sha256WithRSAEncryption | ||
| 68 | pkcs1 12 : RSA-SHA384 : sha384WithRSAEncryption | ||
| 69 | pkcs1 13 : RSA-SHA512 : sha512WithRSAEncryption | ||
| 70 | pkcs1 14 : RSA-SHA224 : sha224WithRSAEncryption | ||
| 66 | 71 | ||
| 67 | pkcs 3 : pkcs3 | 72 | pkcs 3 : pkcs3 |
| 68 | pkcs3 1 : : dhKeyAgreement | 73 | pkcs3 1 : : dhKeyAgreement |
| @@ -341,9 +346,9 @@ id-pe 3 : qcStatements | |||
| 341 | id-pe 4 : ac-auditEntity | 346 | id-pe 4 : ac-auditEntity |
| 342 | id-pe 5 : ac-targeting | 347 | id-pe 5 : ac-targeting |
| 343 | id-pe 6 : aaControls | 348 | id-pe 6 : aaControls |
| 344 | id-pe 7 : sbqp-ipAddrBlock | 349 | id-pe 7 : sbgp-ipAddrBlock |
| 345 | id-pe 8 : sbqp-autonomousSysNum | 350 | id-pe 8 : sbgp-autonomousSysNum |
| 346 | id-pe 9 : sbqp-routerIdentifier | 351 | id-pe 9 : sbgp-routerIdentifier |
| 347 | id-pe 10 : ac-proxying | 352 | id-pe 10 : ac-proxying |
| 348 | !Cname sinfo-access | 353 | !Cname sinfo-access |
| 349 | id-pe 11 : subjectInfoAccess : Subject Information Access | 354 | id-pe 11 : subjectInfoAccess : Subject Information Access |
| @@ -584,6 +589,8 @@ id-ce 21 : CRLReason : X509v3 CRL Reason Code | |||
| 584 | id-ce 24 : invalidityDate : Invalidity Date | 589 | id-ce 24 : invalidityDate : Invalidity Date |
| 585 | !Cname delta-crl | 590 | !Cname delta-crl |
| 586 | id-ce 27 : deltaCRL : X509v3 Delta CRL Indicator | 591 | id-ce 27 : deltaCRL : X509v3 Delta CRL Indicator |
| 592 | !Cname name-constraints | ||
| 593 | id-ce 30 : nameConstraints : X509v3 Name Constraints | ||
| 587 | !Cname crl-distribution-points | 594 | !Cname crl-distribution-points |
| 588 | id-ce 31 : crlDistributionPoints : X509v3 CRL Distribution Points | 595 | id-ce 31 : crlDistributionPoints : X509v3 CRL Distribution Points |
| 589 | !Cname certificate-policies | 596 | !Cname certificate-policies |
| @@ -703,6 +710,13 @@ aes 44 : AES-256-CFB : aes-256-cfb | |||
| 703 | : DES-EDE3-CFB1 : des-ede3-cfb1 | 710 | : DES-EDE3-CFB1 : des-ede3-cfb1 |
| 704 | : DES-EDE3-CFB8 : des-ede3-cfb8 | 711 | : DES-EDE3-CFB8 : des-ede3-cfb8 |
| 705 | 712 | ||
| 713 | # OIDs for SHA224, SHA256, SHA385 and SHA512, according to x9.84. | ||
| 714 | !Alias nist_hashalgs nistAlgorithms 2 | ||
| 715 | nist_hashalgs 1 : SHA256 : sha256 | ||
| 716 | nist_hashalgs 2 : SHA384 : sha384 | ||
| 717 | nist_hashalgs 3 : SHA512 : sha512 | ||
| 718 | nist_hashalgs 4 : SHA224 : sha224 | ||
| 719 | |||
| 706 | # Hold instruction CRL entry extension | 720 | # Hold instruction CRL entry extension |
| 707 | !Cname hold-instruction-code | 721 | !Cname hold-instruction-code |
| 708 | id-ce 23 : holdInstructionCode : Hold Instruction Code | 722 | id-ce 23 : holdInstructionCode : Hold Instruction Code |
