summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/objects
diff options
context:
space:
mode:
authormarkus <>2003-05-11 21:36:59 +0000
committermarkus <>2003-05-11 21:36:59 +0000
commit9cea7b85baecb1a02a3ea617de73d9693a9792eb (patch)
treeb0ca83a03e35572831c5818cd2011868d462a5d1 /src/lib/libcrypto/objects
parentf8f1d7fabf136ce9810602509c477d2c42bf6d1c (diff)
downloadopenbsd-9cea7b85baecb1a02a3ea617de73d9693a9792eb.tar.gz
openbsd-9cea7b85baecb1a02a3ea617de73d9693a9792eb.tar.bz2
openbsd-9cea7b85baecb1a02a3ea617de73d9693a9792eb.zip
import 0.9.7b (without idea and rc5)
Diffstat (limited to 'src/lib/libcrypto/objects')
-rw-r--r--src/lib/libcrypto/objects/obj_dat.h29
-rw-r--r--src/lib/libcrypto/objects/obj_mac.h12
2 files changed, 33 insertions, 8 deletions
diff --git a/src/lib/libcrypto/objects/obj_dat.h b/src/lib/libcrypto/objects/obj_dat.h
index 30812c8aa6..969b18a341 100644
--- a/src/lib/libcrypto/objects/obj_dat.h
+++ b/src/lib/libcrypto/objects/obj_dat.h
@@ -62,12 +62,12 @@
62 * [including the GNU Public Licence.] 62 * [including the GNU Public Licence.]
63 */ 63 */
64 64
65#define NUM_NID 645 65#define NUM_NID 650
66#define NUM_SN 641 66#define NUM_SN 643
67#define NUM_LN 641 67#define NUM_LN 643
68#define NUM_OBJ 615 68#define NUM_OBJ 617
69 69
70static unsigned char lvalues[4435]={ 70static unsigned char lvalues[4455]={
710x00, /* [ 0] OBJ_undef */ 710x00, /* [ 0] OBJ_undef */
720x2A,0x86,0x48,0x86,0xF7,0x0D, /* [ 1] OBJ_rsadsi */ 720x2A,0x86,0x48,0x86,0xF7,0x0D, /* [ 1] OBJ_rsadsi */
730x2A,0x86,0x48,0x86,0xF7,0x0D,0x01, /* [ 7] OBJ_pkcs */ 730x2A,0x86,0x48,0x86,0xF7,0x0D,0x01, /* [ 7] OBJ_pkcs */
@@ -683,6 +683,8 @@ static unsigned char lvalues[4435]={
6830x67,0x2A,0x08,0xAE,0x7B, /* [4412] OBJ_set_brand_Novus */ 6830x67,0x2A,0x08,0xAE,0x7B, /* [4412] OBJ_set_brand_Novus */
6840x2A,0x86,0x48,0x86,0xF7,0x0D,0x03,0x0A, /* [4417] OBJ_des_cdmf */ 6840x2A,0x86,0x48,0x86,0xF7,0x0D,0x03,0x0A, /* [4417] OBJ_des_cdmf */
6850x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x06,/* [4425] OBJ_rsaOAEPEncryptionSET */ 6850x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x06,/* [4425] OBJ_rsaOAEPEncryptionSET */
6860x2B,0x06,0x01,0x04,0x01,0x82,0x37,0x14,0x02,0x02,/* [4434] OBJ_ms_smartcard_login */
6870x2B,0x06,0x01,0x04,0x01,0x82,0x37,0x14,0x02,0x03,/* [4444] OBJ_ms_upn */
686}; 688};
687 689
688static ASN1_OBJECT nid_objs[NUM_NID]={ 690static ASN1_OBJECT nid_objs[NUM_NID]={
@@ -824,7 +826,7 @@ static ASN1_OBJECT nid_objs[NUM_NID]={
824{"RSA-MDC2","mdc2WithRSA",NID_mdc2WithRSA,4,&(lvalues[531]),0}, 826{"RSA-MDC2","mdc2WithRSA",NID_mdc2WithRSA,4,&(lvalues[531]),0},
825{"RC4-40","rc4-40",NID_rc4_40,0,NULL}, 827{"RC4-40","rc4-40",NID_rc4_40,0,NULL},
826{"RC2-40-CBC","rc2-40-cbc",NID_rc2_40_cbc,0,NULL}, 828{"RC2-40-CBC","rc2-40-cbc",NID_rc2_40_cbc,0,NULL},
827{"gn","givenName",NID_givenName,3,&(lvalues[535]),0}, 829{"GN","givenName",NID_givenName,3,&(lvalues[535]),0},
828{"SN","surname",NID_surname,3,&(lvalues[538]),0}, 830{"SN","surname",NID_surname,3,&(lvalues[538]),0},
829{"initials","initials",NID_initials,3,&(lvalues[541]),0}, 831{"initials","initials",NID_initials,3,&(lvalues[541]),0},
830{NULL,NULL,NID_undef,0,NULL}, 832{NULL,NULL,NID_undef,0,NULL},
@@ -1719,6 +1721,13 @@ static ASN1_OBJECT nid_objs[NUM_NID]={
1719{"DES-CDMF","des-cdmf",NID_des_cdmf,8,&(lvalues[4417]),0}, 1721{"DES-CDMF","des-cdmf",NID_des_cdmf,8,&(lvalues[4417]),0},
1720{"rsaOAEPEncryptionSET","rsaOAEPEncryptionSET", 1722{"rsaOAEPEncryptionSET","rsaOAEPEncryptionSET",
1721 NID_rsaOAEPEncryptionSET,9,&(lvalues[4425]),0}, 1723 NID_rsaOAEPEncryptionSET,9,&(lvalues[4425]),0},
1724{NULL,NULL,NID_undef,0,NULL},
1725{NULL,NULL,NID_undef,0,NULL},
1726{NULL,NULL,NID_undef,0,NULL},
1727{"msSmartcardLogin","Microsoft Smartcardlogin",NID_ms_smartcard_login,
1728 10,&(lvalues[4434]),0},
1729{"msUPN","Microsoft Universal Principal Name",NID_ms_upn,10,
1730 &(lvalues[4444]),0},
1722}; 1731};
1723 1732
1724static ASN1_OBJECT *sn_objs[NUM_SN]={ 1733static ASN1_OBJECT *sn_objs[NUM_SN]={
@@ -1771,6 +1780,7 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
1771&(nid_objs[70]),/* "DSA-SHA1-old" */ 1780&(nid_objs[70]),/* "DSA-SHA1-old" */
1772&(nid_objs[67]),/* "DSA-old" */ 1781&(nid_objs[67]),/* "DSA-old" */
1773&(nid_objs[297]),/* "DVCS" */ 1782&(nid_objs[297]),/* "DVCS" */
1783&(nid_objs[99]),/* "GN" */
1774&(nid_objs[381]),/* "IANA" */ 1784&(nid_objs[381]),/* "IANA" */
1775&(nid_objs[34]),/* "IDEA-CBC" */ 1785&(nid_objs[34]),/* "IDEA-CBC" */
1776&(nid_objs[35]),/* "IDEA-CFB" */ 1786&(nid_objs[35]),/* "IDEA-CFB" */
@@ -1917,7 +1927,6 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
1917&(nid_objs[490]),/* "friendlyCountryName" */ 1927&(nid_objs[490]),/* "friendlyCountryName" */
1918&(nid_objs[156]),/* "friendlyName" */ 1928&(nid_objs[156]),/* "friendlyName" */
1919&(nid_objs[509]),/* "generationQualifier" */ 1929&(nid_objs[509]),/* "generationQualifier" */
1920&(nid_objs[99]),/* "gn" */
1921&(nid_objs[163]),/* "hmacWithSHA1" */ 1930&(nid_objs[163]),/* "hmacWithSHA1" */
1922&(nid_objs[432]),/* "holdInstructionCallIssuer" */ 1931&(nid_objs[432]),/* "holdInstructionCallIssuer" */
1923&(nid_objs[430]),/* "holdInstructionCode" */ 1932&(nid_objs[430]),/* "holdInstructionCode" */
@@ -2127,6 +2136,8 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
2127&(nid_objs[138]),/* "msEFS" */ 2136&(nid_objs[138]),/* "msEFS" */
2128&(nid_objs[171]),/* "msExtReq" */ 2137&(nid_objs[171]),/* "msExtReq" */
2129&(nid_objs[137]),/* "msSGC" */ 2138&(nid_objs[137]),/* "msSGC" */
2139&(nid_objs[648]),/* "msSmartcardLogin" */
2140&(nid_objs[649]),/* "msUPN" */
2130&(nid_objs[481]),/* "nSRecord" */ 2141&(nid_objs[481]),/* "nSRecord" */
2131&(nid_objs[173]),/* "name" */ 2142&(nid_objs[173]),/* "name" */
2132&(nid_objs[369]),/* "noCheck" */ 2143&(nid_objs[369]),/* "noCheck" */
@@ -2401,7 +2412,9 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
2401&(nid_objs[171]),/* "Microsoft Extension Request" */ 2412&(nid_objs[171]),/* "Microsoft Extension Request" */
2402&(nid_objs[134]),/* "Microsoft Individual Code Signing" */ 2413&(nid_objs[134]),/* "Microsoft Individual Code Signing" */
2403&(nid_objs[137]),/* "Microsoft Server Gated Crypto" */ 2414&(nid_objs[137]),/* "Microsoft Server Gated Crypto" */
2415&(nid_objs[648]),/* "Microsoft Smartcardlogin" */
2404&(nid_objs[136]),/* "Microsoft Trust List Signing" */ 2416&(nid_objs[136]),/* "Microsoft Trust List Signing" */
2417&(nid_objs[649]),/* "Microsoft Universal Principal Name" */
2405&(nid_objs[72]),/* "Netscape Base Url" */ 2418&(nid_objs[72]),/* "Netscape Base Url" */
2406&(nid_objs[76]),/* "Netscape CA Policy Url" */ 2419&(nid_objs[76]),/* "Netscape CA Policy Url" */
2407&(nid_objs[74]),/* "Netscape CA Revocation Url" */ 2420&(nid_objs[74]),/* "Netscape CA Revocation Url" */
@@ -3557,6 +3570,8 @@ static ASN1_OBJECT *obj_objs[NUM_OBJ]={
3557&(nid_objs[136]),/* OBJ_ms_ctl_sign 1 3 6 1 4 1 311 10 3 1 */ 3570&(nid_objs[136]),/* OBJ_ms_ctl_sign 1 3 6 1 4 1 311 10 3 1 */
3558&(nid_objs[137]),/* OBJ_ms_sgc 1 3 6 1 4 1 311 10 3 3 */ 3571&(nid_objs[137]),/* OBJ_ms_sgc 1 3 6 1 4 1 311 10 3 3 */
3559&(nid_objs[138]),/* OBJ_ms_efs 1 3 6 1 4 1 311 10 3 4 */ 3572&(nid_objs[138]),/* OBJ_ms_efs 1 3 6 1 4 1 311 10 3 4 */
3573&(nid_objs[648]),/* OBJ_ms_smartcard_login 1 3 6 1 4 1 311 20 2 2 */
3574&(nid_objs[649]),/* OBJ_ms_upn 1 3 6 1 4 1 311 20 2 3 */
3560&(nid_objs[196]),/* OBJ_id_smime_mod_cms 1 2 840 113549 1 9 16 0 1 */ 3575&(nid_objs[196]),/* OBJ_id_smime_mod_cms 1 2 840 113549 1 9 16 0 1 */
3561&(nid_objs[197]),/* OBJ_id_smime_mod_ess 1 2 840 113549 1 9 16 0 2 */ 3576&(nid_objs[197]),/* OBJ_id_smime_mod_ess 1 2 840 113549 1 9 16 0 2 */
3562&(nid_objs[198]),/* OBJ_id_smime_mod_oid 1 2 840 113549 1 9 16 0 3 */ 3577&(nid_objs[198]),/* OBJ_id_smime_mod_oid 1 2 840 113549 1 9 16 0 3 */
diff --git a/src/lib/libcrypto/objects/obj_mac.h b/src/lib/libcrypto/objects/obj_mac.h
index 899db8325c..7645012298 100644
--- a/src/lib/libcrypto/objects/obj_mac.h
+++ b/src/lib/libcrypto/objects/obj_mac.h
@@ -850,6 +850,16 @@
850#define NID_ms_efs 138 850#define NID_ms_efs 138
851#define OBJ_ms_efs 1L,3L,6L,1L,4L,1L,311L,10L,3L,4L 851#define OBJ_ms_efs 1L,3L,6L,1L,4L,1L,311L,10L,3L,4L
852 852
853#define SN_ms_smartcard_login "msSmartcardLogin"
854#define LN_ms_smartcard_login "Microsoft Smartcardlogin"
855#define NID_ms_smartcard_login 648
856#define OBJ_ms_smartcard_login 1L,3L,6L,1L,4L,1L,311L,20L,2L,2L
857
858#define SN_ms_upn "msUPN"
859#define LN_ms_upn "Microsoft Universal Principal Name"
860#define NID_ms_upn 649
861#define OBJ_ms_upn 1L,3L,6L,1L,4L,1L,311L,20L,2L,3L
862
853#define SN_idea_cbc "IDEA-CBC" 863#define SN_idea_cbc "IDEA-CBC"
854#define LN_idea_cbc "idea-cbc" 864#define LN_idea_cbc "idea-cbc"
855#define NID_idea_cbc 34 865#define NID_idea_cbc 34
@@ -1632,7 +1642,7 @@
1632#define NID_name 173 1642#define NID_name 173
1633#define OBJ_name OBJ_X509,41L 1643#define OBJ_name OBJ_X509,41L
1634 1644
1635#define SN_givenName "gn" 1645#define SN_givenName "GN"
1636#define LN_givenName "givenName" 1646#define LN_givenName "givenName"
1637#define NID_givenName 99 1647#define NID_givenName 99
1638#define OBJ_givenName OBJ_X509,42L 1648#define OBJ_givenName OBJ_X509,42L