summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/objects/objects.h
diff options
context:
space:
mode:
authorbeck <>2000-03-19 11:13:58 +0000
committerbeck <>2000-03-19 11:13:58 +0000
commit796d609550df3a33fc11468741c5d2f6d3df4c11 (patch)
tree6c6d539061caa20372dad0ac4ddb1dfae2fbe7fe /src/lib/libcrypto/objects/objects.h
parent5be3114c1fd7e0dfea1e38d3abb4cbba75244419 (diff)
downloadopenbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.tar.gz
openbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.tar.bz2
openbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.zip
OpenSSL 0.9.5 merge
*warning* this bumps shared lib minors for libssl and libcrypto from 2.1 to 2.2 if you are using the ssl26 packages for ssh and other things to work you will need to get new ones (see ~beck/libsslsnap/<arch>) on cvs or ~beck/src-patent.tar.gz on cvs
Diffstat (limited to 'src/lib/libcrypto/objects/objects.h')
-rw-r--r--src/lib/libcrypto/objects/objects.h74
1 files changed, 69 insertions, 5 deletions
diff --git a/src/lib/libcrypto/objects/objects.h b/src/lib/libcrypto/objects/objects.h
index d03748e022..d1a5ad2502 100644
--- a/src/lib/libcrypto/objects/objects.h
+++ b/src/lib/libcrypto/objects/objects.h
@@ -110,10 +110,12 @@ extern "C" {
110#define NID_md5WithRSAEncryption 8 110#define NID_md5WithRSAEncryption 8
111#define OBJ_md5WithRSAEncryption OBJ_pkcs,1L,4L 111#define OBJ_md5WithRSAEncryption OBJ_pkcs,1L,4L
112 112
113#define SN_pbeWithMD2AndDES_CBC "PBE-MD2-DES"
113#define LN_pbeWithMD2AndDES_CBC "pbeWithMD2AndDES-CBC" 114#define LN_pbeWithMD2AndDES_CBC "pbeWithMD2AndDES-CBC"
114#define NID_pbeWithMD2AndDES_CBC 9 115#define NID_pbeWithMD2AndDES_CBC 9
115#define OBJ_pbeWithMD2AndDES_CBC OBJ_pkcs,5L,1L 116#define OBJ_pbeWithMD2AndDES_CBC OBJ_pkcs,5L,1L
116 117
118#define SN_pbeWithMD5AndDES_CBC "PBE-MD5-DES"
117#define LN_pbeWithMD5AndDES_CBC "pbeWithMD5AndDES-CBC" 119#define LN_pbeWithMD5AndDES_CBC "pbeWithMD5AndDES-CBC"
118#define NID_pbeWithMD5AndDES_CBC 10 120#define NID_pbeWithMD5AndDES_CBC 10
119#define OBJ_pbeWithMD5AndDES_CBC OBJ_pkcs,5L,3L 121#define OBJ_pbeWithMD5AndDES_CBC OBJ_pkcs,5L,3L
@@ -230,6 +232,7 @@ extern "C" {
230#define SN_idea_cbc "IDEA-CBC" 232#define SN_idea_cbc "IDEA-CBC"
231#define LN_idea_cbc "idea-cbc" 233#define LN_idea_cbc "idea-cbc"
232#define NID_idea_cbc 34 234#define NID_idea_cbc 34
235#define OBJ_idea_cbc 1L,3L,6L,1L,4L,1L,188L,7L,1L,1L,2L
233 236
234#define SN_idea_cfb64 "IDEA-CFB" 237#define SN_idea_cfb64 "IDEA-CFB"
235#define LN_idea_cfb64 "idea-cfb" 238#define LN_idea_cfb64 "idea-cfb"
@@ -380,6 +383,7 @@ extern "C" {
380#define OBJ_dsa_2 OBJ_algorithm,12L 383#define OBJ_dsa_2 OBJ_algorithm,12L
381 384
382/* proposed by microsoft to RSA */ 385/* proposed by microsoft to RSA */
386#define SN_pbeWithSHA1AndRC2_CBC "PBE-SHA1-RC2-64"
383#define LN_pbeWithSHA1AndRC2_CBC "pbeWithSHA1AndRC2-CBC" 387#define LN_pbeWithSHA1AndRC2_CBC "pbeWithSHA1AndRC2-CBC"
384#define NID_pbeWithSHA1AndRC2_CBC 68 388#define NID_pbeWithSHA1AndRC2_CBC 68
385#define OBJ_pbeWithSHA1AndRC2_CBC OBJ_pkcs,5L,11L 389#define OBJ_pbeWithSHA1AndRC2_CBC OBJ_pkcs,5L,11L
@@ -499,6 +503,7 @@ extern "C" {
499#define SN_bf_cbc "BF-CBC" 503#define SN_bf_cbc "BF-CBC"
500#define LN_bf_cbc "bf-cbc" 504#define LN_bf_cbc "bf-cbc"
501#define NID_bf_cbc 91 505#define NID_bf_cbc 91
506#define OBJ_bf_cbc 1L,3L,6L,1L,4L,1L,3029L,1L,2L
502 507
503#define SN_bf_ecb "BF-ECB" 508#define SN_bf_ecb "BF-ECB"
504#define LN_bf_ecb "bf-ecb" 509#define LN_bf_ecb "bf-ecb"
@@ -627,7 +632,7 @@ extern "C" {
627#define OBJ_ripemd160 1L,3L,36L,3L,2L,1L 632#define OBJ_ripemd160 1L,3L,36L,3L,2L,1L
628 633
629/* The name should actually be rsaSignatureWithripemd160, but I'm going 634/* The name should actually be rsaSignatureWithripemd160, but I'm going
630 * to contiune using the convention I'm using with the other ciphers */ 635 * to continue using the convention I'm using with the other ciphers */
631#define SN_ripemd160WithRSA "RSA-RIPEMD160" 636#define SN_ripemd160WithRSA "RSA-RIPEMD160"
632#define LN_ripemd160WithRSA "ripemd160WithRSA" 637#define LN_ripemd160WithRSA "ripemd160WithRSA"
633#define NID_ripemd160WithRSA 119 638#define NID_ripemd160WithRSA 119
@@ -661,12 +666,12 @@ extern "C" {
661#define SN_rle_compression "RLE" 666#define SN_rle_compression "RLE"
662#define LN_rle_compression "run length compression" 667#define LN_rle_compression "run length compression"
663#define NID_rle_compression 124 668#define NID_rle_compression 124
664#define OBJ_rle_compression 1L,1L,1L,1L,666L.1L 669#define OBJ_rle_compression 1L,1L,1L,1L,666L,1L
665 670
666#define SN_zlib_compression "ZLIB" 671#define SN_zlib_compression "ZLIB"
667#define LN_zlib_compression "zlib compression" 672#define LN_zlib_compression "zlib compression"
668#define NID_zlib_compression 125 673#define NID_zlib_compression 125
669#define OBJ_zlib_compression 1L,1L,1L,1L,666L.2L 674#define OBJ_zlib_compression 1L,1L,1L,1L,666L,2L
670 675
671#define SN_ext_key_usage "extendedKeyUsage" 676#define SN_ext_key_usage "extendedKeyUsage"
672#define LN_ext_key_usage "X509v3 Extended Key Usage" 677#define LN_ext_key_usage "X509v3 Extended Key Usage"
@@ -735,7 +740,7 @@ extern "C" {
735#define NID_ms_efs 138 740#define NID_ms_efs 138
736#define OBJ_ms_efs 1L,3L,6L,1L,4L,1L,311L,10L,3L,4L 741#define OBJ_ms_efs 1L,3L,6L,1L,4L,1L,311L,10L,3L,4L
737 742
738/* Addidional usage: Netscape */ 743/* Additional usage: Netscape */
739 744
740#define SN_ns_sgc "nsSGC" 745#define SN_ns_sgc "nsSGC"
741#define LN_ns_sgc "Netscape Server Gated Crypto" 746#define LN_ns_sgc "Netscape Server Gated Crypto"
@@ -767,26 +772,32 @@ extern "C" {
767#define OBJ_pkcs12 OBJ_pkcs,12L 772#define OBJ_pkcs12 OBJ_pkcs,12L
768#define OBJ_pkcs12_pbeids OBJ_pkcs12, 1 773#define OBJ_pkcs12_pbeids OBJ_pkcs12, 1
769 774
775#define SN_pbe_WithSHA1And128BitRC4 "PBE-SHA1-RC4-128"
770#define LN_pbe_WithSHA1And128BitRC4 "pbeWithSHA1And128BitRC4" 776#define LN_pbe_WithSHA1And128BitRC4 "pbeWithSHA1And128BitRC4"
771#define NID_pbe_WithSHA1And128BitRC4 144 777#define NID_pbe_WithSHA1And128BitRC4 144
772#define OBJ_pbe_WithSHA1And128BitRC4 OBJ_pkcs12_pbeids, 1L 778#define OBJ_pbe_WithSHA1And128BitRC4 OBJ_pkcs12_pbeids, 1L
773 779
780#define SN_pbe_WithSHA1And40BitRC4 "PBE-SHA1-RC4-40"
774#define LN_pbe_WithSHA1And40BitRC4 "pbeWithSHA1And40BitRC4" 781#define LN_pbe_WithSHA1And40BitRC4 "pbeWithSHA1And40BitRC4"
775#define NID_pbe_WithSHA1And40BitRC4 145 782#define NID_pbe_WithSHA1And40BitRC4 145
776#define OBJ_pbe_WithSHA1And40BitRC4 OBJ_pkcs12_pbeids, 2L 783#define OBJ_pbe_WithSHA1And40BitRC4 OBJ_pkcs12_pbeids, 2L
777 784
785#define SN_pbe_WithSHA1And3_Key_TripleDES_CBC "PBE-SHA1-3DES"
778#define LN_pbe_WithSHA1And3_Key_TripleDES_CBC "pbeWithSHA1And3-KeyTripleDES-CBC" 786#define LN_pbe_WithSHA1And3_Key_TripleDES_CBC "pbeWithSHA1And3-KeyTripleDES-CBC"
779#define NID_pbe_WithSHA1And3_Key_TripleDES_CBC 146 787#define NID_pbe_WithSHA1And3_Key_TripleDES_CBC 146
780#define OBJ_pbe_WithSHA1And3_Key_TripleDES_CBC OBJ_pkcs12_pbeids, 3L 788#define OBJ_pbe_WithSHA1And3_Key_TripleDES_CBC OBJ_pkcs12_pbeids, 3L
781 789
790#define SN_pbe_WithSHA1And2_Key_TripleDES_CBC "PBE-SHA1-2DES"
782#define LN_pbe_WithSHA1And2_Key_TripleDES_CBC "pbeWithSHA1And2-KeyTripleDES-CBC" 791#define LN_pbe_WithSHA1And2_Key_TripleDES_CBC "pbeWithSHA1And2-KeyTripleDES-CBC"
783#define NID_pbe_WithSHA1And2_Key_TripleDES_CBC 147 792#define NID_pbe_WithSHA1And2_Key_TripleDES_CBC 147
784#define OBJ_pbe_WithSHA1And2_Key_TripleDES_CBC OBJ_pkcs12_pbeids, 4L 793#define OBJ_pbe_WithSHA1And2_Key_TripleDES_CBC OBJ_pkcs12_pbeids, 4L
785 794
795#define SN_pbe_WithSHA1And128BitRC2_CBC "PBE-SHA1-RC2-128"
786#define LN_pbe_WithSHA1And128BitRC2_CBC "pbeWithSHA1And128BitRC2-CBC" 796#define LN_pbe_WithSHA1And128BitRC2_CBC "pbeWithSHA1And128BitRC2-CBC"
787#define NID_pbe_WithSHA1And128BitRC2_CBC 148 797#define NID_pbe_WithSHA1And128BitRC2_CBC 148
788#define OBJ_pbe_WithSHA1And128BitRC2_CBC OBJ_pkcs12_pbeids, 5L 798#define OBJ_pbe_WithSHA1And128BitRC2_CBC OBJ_pkcs12_pbeids, 5L
789 799
800#define SN_pbe_WithSHA1And40BitRC2_CBC "PBE-SHA1-RC2-40"
790#define LN_pbe_WithSHA1And40BitRC2_CBC "pbeWithSHA1And40BitRC2-CBC" 801#define LN_pbe_WithSHA1And40BitRC2_CBC "pbeWithSHA1And40BitRC2-CBC"
791#define NID_pbe_WithSHA1And40BitRC2_CBC 149 802#define NID_pbe_WithSHA1And40BitRC2_CBC 149
792#define OBJ_pbe_WithSHA1And40BitRC2_CBC OBJ_pkcs12_pbeids, 6L 803#define OBJ_pbe_WithSHA1And40BitRC2_CBC OBJ_pkcs12_pbeids, 6L
@@ -876,20 +887,73 @@ extern "C" {
876#define SN_SMIMECapabilities "SMIME-CAPS" 887#define SN_SMIMECapabilities "SMIME-CAPS"
877#define LN_SMIMECapabilities "S/MIME Capabilities" 888#define LN_SMIMECapabilities "S/MIME Capabilities"
878#define NID_SMIMECapabilities 167 889#define NID_SMIMECapabilities 167
879#define OBJ_SMIMECapabilities OBJ_id_pkcs9,15L 890#define OBJ_SMIMECapabilities OBJ_pkcs9,15L
880 891
892#define SN_pbeWithMD2AndRC2_CBC "PBE-MD2-RC2-64"
881#define LN_pbeWithMD2AndRC2_CBC "pbeWithMD2AndRC2-CBC" 893#define LN_pbeWithMD2AndRC2_CBC "pbeWithMD2AndRC2-CBC"
882#define NID_pbeWithMD2AndRC2_CBC 168 894#define NID_pbeWithMD2AndRC2_CBC 168
883#define OBJ_pbeWithMD2AndRC2_CBC OBJ_pkcs,5L,4L 895#define OBJ_pbeWithMD2AndRC2_CBC OBJ_pkcs,5L,4L
884 896
897#define SN_pbeWithMD5AndRC2_CBC "PBE-MD5-RC2-64"
885#define LN_pbeWithMD5AndRC2_CBC "pbeWithMD5AndRC2-CBC" 898#define LN_pbeWithMD5AndRC2_CBC "pbeWithMD5AndRC2-CBC"
886#define NID_pbeWithMD5AndRC2_CBC 169 899#define NID_pbeWithMD5AndRC2_CBC 169
887#define OBJ_pbeWithMD5AndRC2_CBC OBJ_pkcs,5L,6L 900#define OBJ_pbeWithMD5AndRC2_CBC OBJ_pkcs,5L,6L
888 901
902#define SN_pbeWithSHA1AndDES_CBC "PBE-SHA1-DES"
889#define LN_pbeWithSHA1AndDES_CBC "pbeWithSHA1AndDES-CBC" 903#define LN_pbeWithSHA1AndDES_CBC "pbeWithSHA1AndDES-CBC"
890#define NID_pbeWithSHA1AndDES_CBC 170 904#define NID_pbeWithSHA1AndDES_CBC 170
891#define OBJ_pbeWithSHA1AndDES_CBC OBJ_pkcs,5L,10L 905#define OBJ_pbeWithSHA1AndDES_CBC OBJ_pkcs,5L,10L
892 906
907/* Extension request OIDs */
908
909#define LN_ms_ext_req "Microsoft Extension Request"
910#define SN_ms_ext_req "msExtReq"
911#define NID_ms_ext_req 171
912#define OBJ_ms_ext_req 1L,3L,6L,1L,4L,1L,311L,2L,1L,14L
913
914#define LN_ext_req "Extension Request"
915#define SN_ext_req "extReq"
916#define NID_ext_req 172
917#define OBJ_ext_req OBJ_pkcs9,14L
918
919#define SN_name "name"
920#define LN_name "name"
921#define NID_name 173
922#define OBJ_name OBJ_X509,41L
923
924#define SN_dnQualifier "dnQualifier"
925#define LN_dnQualifier "dnQualifier"
926#define NID_dnQualifier 174
927#define OBJ_dnQualifier OBJ_X509,46L
928
929#define SN_id_pe "id-pe"
930#define NID_id_pe 175
931#define OBJ_id_pe OBJ_id_pkix,1L
932
933#define SN_id_ad "id-ad"
934#define NID_id_ad 176
935#define OBJ_id_ad OBJ_id_pkix,48L
936
937#define SN_info_access "authorityInfoAccess"
938#define LN_info_access "Authority Information Access"
939#define NID_info_access 177
940#define OBJ_info_access OBJ_id_pe,1L
941
942#define SN_ad_OCSP "OCSP"
943#define LN_ad_OCSP "OCSP"
944#define NID_ad_OCSP 178
945#define OBJ_ad_OCSP OBJ_id_ad,1L
946
947#define SN_ad_ca_issuers "caIssuers"
948#define LN_ad_ca_issuers "CA Issuers"
949#define NID_ad_ca_issuers 179
950#define OBJ_ad_ca_issuers OBJ_id_ad,2L
951
952#define SN_OSCP_sign "OCSPSigning"
953#define LN_OCSP_sign "OCSP Signing"
954#define NID_OCSP_sign 180
955#define OBJ_OCSP_sign OBJ_id_kp,9L
956
893#include <openssl/bio.h> 957#include <openssl/bio.h>
894#include <openssl/asn1.h> 958#include <openssl/asn1.h>
895 959