From 345731731aaa849b83ad55e0f4e96df359e5e33e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lutz=20J=C3=A4nicke?= Date: Thu, 6 Jun 2002 07:33:00 +0000 Subject: [PATCH] New OID for X509 usage: pseudonym Submitted by: Michael Bell Reviewed by: Lutz Jaenicke PR: 83 --- crypto/objects/obj_dat.h | 15 ++++++++++----- crypto/objects/obj_mac.h | 4 ++++ crypto/objects/obj_mac.num | 1 + crypto/objects/objects.txt | 1 + 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/crypto/objects/obj_dat.h b/crypto/objects/obj_dat.h index 15980a1277..34f795575a 100644 --- a/crypto/objects/obj_dat.h +++ b/crypto/objects/obj_dat.h @@ -62,12 +62,12 @@ * [including the GNU Public Licence.] */ -#define NUM_NID 575 -#define NUM_SN 570 -#define NUM_LN 570 -#define NUM_OBJ 544 +#define NUM_NID 576 +#define NUM_SN 571 +#define NUM_LN 571 +#define NUM_OBJ 545 -static unsigned char lvalues[4260]={ +static unsigned char lvalues[4263]={ 0x00, /* [ 0] OBJ_undef */ 0x2A,0x86,0x48,0x86,0xF7,0x0D, /* [ 1] OBJ_rsadsi */ 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01, /* [ 7] OBJ_pkcs */ @@ -612,6 +612,7 @@ static unsigned char lvalues[4260]={ 0x2B,0x06,0x01,0x07,0x01,0x01,0x01, /* [4242] OBJ_id_hex_partial_message */ 0x2B,0x06,0x01,0x07,0x01,0x01,0x02, /* [4249] OBJ_id_hex_multipart_message */ 0x55,0x04,0x2C, /* [4256] OBJ_generationQualifier */ +0x55,0x04,0x41, /* [4259] OBJ_pseudonym */ }; static ASN1_OBJECT nid_objs[NUM_NID]={ @@ -1468,6 +1469,7 @@ static ASN1_OBJECT nid_objs[NUM_NID]={ NID_id_hex_multipart_message,7,&(lvalues[4249]),0}, {"generationQualifier","generationQualifier",NID_generationQualifier, 3,&(lvalues[4256]),0}, +{"pseudonym","pseudonym",NID_pseudonym,3,&(lvalues[4259]),0}, }; static ASN1_OBJECT *sn_objs[NUM_SN]={ @@ -1957,6 +1959,7 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={ &(nid_objs[415]),/* "prime256v1" */ &(nid_objs[385]),/* "private" */ &(nid_objs[84]),/* "privateKeyUsagePeriod" */ +&(nid_objs[575]),/* "pseudonym" */ &(nid_objs[435]),/* "pss" */ &(nid_objs[286]),/* "qcStatements" */ &(nid_objs[457]),/* "qualityLabelledData" */ @@ -2515,6 +2518,7 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={ &(nid_objs[413]),/* "prime239v2" */ &(nid_objs[414]),/* "prime239v3" */ &(nid_objs[415]),/* "prime256v1" */ +&(nid_objs[575]),/* "pseudonym" */ &(nid_objs[435]),/* "pss" */ &(nid_objs[286]),/* "qcStatements" */ &(nid_objs[457]),/* "qualityLabelledData" */ @@ -2652,6 +2656,7 @@ static ASN1_OBJECT *obj_objs[NUM_OBJ]={ &(nid_objs[574]),/* OBJ_generationQualifier 2 5 4 44 */ &(nid_objs[568]),/* OBJ_x500UniqueIdentifier 2 5 4 45 */ &(nid_objs[174]),/* OBJ_dnQualifier 2 5 4 46 */ +&(nid_objs[575]),/* OBJ_pseudonym 2 5 4 65 */ &(nid_objs[400]),/* OBJ_role 2 5 4 72 */ &(nid_objs[82]),/* OBJ_subject_key_identifier 2 5 29 14 */ &(nid_objs[83]),/* OBJ_key_usage 2 5 29 15 */ diff --git a/crypto/objects/obj_mac.h b/crypto/objects/obj_mac.h index 34c9187124..42c61807b8 100644 --- a/crypto/objects/obj_mac.h +++ b/crypto/objects/obj_mac.h @@ -1910,6 +1910,10 @@ #define NID_dnQualifier 174 #define OBJ_dnQualifier OBJ_X509,46L +#define LN_pseudonym "pseudonym" +#define NID_pseudonym 575 +#define OBJ_pseudonym OBJ_X509,65L + #define SN_role "role" #define LN_role "role" #define NID_role 400 diff --git a/crypto/objects/obj_mac.num b/crypto/objects/obj_mac.num index 1fe9caa7be..2e54b7472e 100644 --- a/crypto/objects/obj_mac.num +++ b/crypto/objects/obj_mac.num @@ -572,3 +572,4 @@ mime_mhs_bodies 571 id_hex_partial_message 572 id_hex_multipart_message 573 generationQualifier 574 +pseudonym 575 diff --git a/crypto/objects/objects.txt b/crypto/objects/objects.txt index a9144f5914..0674a22a4e 100644 --- a/crypto/objects/objects.txt +++ b/crypto/objects/objects.txt @@ -614,6 +614,7 @@ X509 43 : : initials X509 44 : : generationQualifier X509 45 : : x500UniqueIdentifier X509 46 : dnQualifier : dnQualifier +X509 65 : : pseudonym X509 72 : role : role X500 8 : X500algorithms : directory services - algorithms -- 2.34.1