diff --git a/src/x509.c b/src/x509.c index 144731f7d..5cdb53cdb 100644 --- a/src/x509.c +++ b/src/x509.c @@ -10500,6 +10500,7 @@ static int ConvertNIDToWolfSSL(int nid) case NID_organizationName: return ASN_ORG_NAME; case NID_organizationalUnitName: return ASN_ORGUNIT_NAME; case NID_emailAddress: return ASN_EMAIL_NAME; + case NID_pkcs9_contentType: return ASN_CONTENT_TYPE; case NID_serialNumber: return ASN_SERIAL_NUMBER; case NID_userId: return ASN_USER_ID; case NID_businessCategory: return ASN_BUS_CAT; diff --git a/wolfssl/wolfcrypt/asn.h b/wolfssl/wolfcrypt/asn.h index abad111ec..7a63559f0 100644 --- a/wolfssl/wolfcrypt/asn.h +++ b/wolfssl/wolfcrypt/asn.h @@ -710,6 +710,8 @@ enum DN_Tags { ASN_DNQUALIFIER = 0x2e, /* dnQualifier */ #endif /* WOLFSSL_CERT_NAME_ALL */ + ASN_CONTENT_TYPE = 0x03, /* pkcs9_contentType */ + ASN_EMAIL_NAME = 0x98, /* not actual OID (see attrEmailOid) */ ASN_CUSTOM_NAME = 0x99, /* not actual OID (see CertOidField) */