From 2250f475fc2278b80c87a5656b8f763924c6e04a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lutz=20J=C3=A4nicke?= Date: Thu, 6 Jun 2002 07:30:45 +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 39cfcda783..7b1f137953 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 510 -#define NUM_SN 507 -#define NUM_LN 507 -#define NUM_OBJ 481 +#define NUM_NID 511 +#define NUM_SN 508 +#define NUM_LN 508 +#define NUM_OBJ 482 -static unsigned char lvalues[3881]={ +static unsigned char lvalues[3884]={ 0x00, /* [ 0] OBJ_undef */ 0x2A,0x86,0x48,0x86,0xF7,0x0D, /* [ 1] OBJ_rsadsi */ 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01, /* [ 7] OBJ_pkcs */ @@ -549,6 +549,7 @@ static unsigned char lvalues[3881]={ 0x2B,0x06,0x01,0x07,0x01,0x01,0x01, /* [3863] OBJ_id_hex_partial_message */ 0x2B,0x06,0x01,0x07,0x01,0x01,0x02, /* [3870] OBJ_id_hex_multipart_message */ 0x55,0x04,0x2C, /* [3877] OBJ_generationQualifier */ +0x55,0x04,0x41, /* [3880] OBJ_pseudonym */ }; static ASN1_OBJECT nid_objs[NUM_NID]={ @@ -1334,6 +1335,7 @@ static ASN1_OBJECT nid_objs[NUM_NID]={ NID_id_hex_multipart_message,7,&(lvalues[3870]),0}, {"generationQualifier","generationQualifier",NID_generationQualifier, 3,&(lvalues[3877]),0}, +{"pseudonym","pseudonym",NID_pseudonym,3,&(lvalues[3880]),0}, }; static ASN1_OBJECT *sn_objs[NUM_SN]={ @@ -1798,6 +1800,7 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={ &(nid_objs[415]),/* "prime256v1" */ &(nid_objs[385]),/* "private" */ &(nid_objs[84]),/* "privateKeyUsagePeriod" */ +&(nid_objs[510]),/* "pseudonym" */ &(nid_objs[435]),/* "pss" */ &(nid_objs[286]),/* "qcStatements" */ &(nid_objs[457]),/* "qualityLabelledData" */ @@ -2293,6 +2296,7 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={ &(nid_objs[413]),/* "prime239v2" */ &(nid_objs[414]),/* "prime239v3" */ &(nid_objs[415]),/* "prime256v1" */ +&(nid_objs[510]),/* "pseudonym" */ &(nid_objs[435]),/* "pss" */ &(nid_objs[286]),/* "qcStatements" */ &(nid_objs[457]),/* "qualityLabelledData" */ @@ -2389,6 +2393,7 @@ static ASN1_OBJECT *obj_objs[NUM_OBJ]={ &(nid_objs[509]),/* OBJ_generationQualifier 2 5 4 44 */ &(nid_objs[503]),/* OBJ_x500UniqueIdentifier 2 5 4 45 */ &(nid_objs[174]),/* OBJ_dnQualifier 2 5 4 46 */ +&(nid_objs[510]),/* 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 6d77fcba3f..c73e1aa2e7 100644 --- a/crypto/objects/obj_mac.h +++ b/crypto/objects/obj_mac.h @@ -1654,6 +1654,10 @@ #define NID_dnQualifier 174 #define OBJ_dnQualifier OBJ_X509,46L +#define LN_pseudonym "pseudonym" +#define NID_pseudonym 510 +#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 02b39062fe..bd5992875e 100644 --- a/crypto/objects/obj_mac.num +++ b/crypto/objects/obj_mac.num @@ -507,3 +507,4 @@ mime_mhs_bodies 506 id_hex_partial_message 507 id_hex_multipart_message 508 generationQualifier 509 +pseudonym 510 diff --git a/crypto/objects/objects.txt b/crypto/objects/objects.txt index 65d0b15629..486618c587 100644 --- a/crypto/objects/objects.txt +++ b/crypto/objects/objects.txt @@ -542,6 +542,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.25.1