Skip to content

Commit 4821859

Browse files
author
Lealem Amedie
committed
Fix for adding pkcs9 contentType entry name
1 parent 1daaabf commit 4821859

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/x509.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10500,6 +10500,7 @@ static int ConvertNIDToWolfSSL(int nid)
1050010500
case NID_organizationName: return ASN_ORG_NAME;
1050110501
case NID_organizationalUnitName: return ASN_ORGUNIT_NAME;
1050210502
case NID_emailAddress: return ASN_EMAIL_NAME;
10503+
case NID_pkcs9_contentType: return ASN_CONTENT_TYPE;
1050310504
case NID_serialNumber: return ASN_SERIAL_NUMBER;
1050410505
case NID_userId: return ASN_USER_ID;
1050510506
case NID_businessCategory: return ASN_BUS_CAT;

wolfssl/wolfcrypt/asn.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,8 @@ enum DN_Tags {
710710
ASN_DNQUALIFIER = 0x2e, /* dnQualifier */
711711
#endif /* WOLFSSL_CERT_NAME_ALL */
712712

713+
ASN_CONTENT_TYPE = 0x03, /* pkcs9_contentType */
714+
713715
ASN_EMAIL_NAME = 0x98, /* not actual OID (see attrEmailOid) */
714716
ASN_CUSTOM_NAME = 0x99, /* not actual OID (see CertOidField) */
715717

0 commit comments

Comments
 (0)