diff --git a/src/ssl.c b/src/ssl.c index 7370cccef..140fe5994 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -18617,6 +18617,7 @@ const WOLFSSL_ObjectInfo wolfssl_object_info[] = { { WC_NID_userId, WC_NAME_USER_ID_OID, oidCertNameType, "UID", "userId"}, { WC_NID_netscape_cert_type, NETSCAPE_CT_OID, oidCertNameType, "nsCertType", "Netscape Cert Type"}, + { WC_NID_pkcs7_data, DATA, oidCertNameType, "pkcs7-data", "pkcs7-data"}, #if defined(WOLFSSL_CERT_REQ) || defined(WOLFSSL_CERT_NAME_ALL) { WC_NID_pkcs9_challengePassword, CHALLENGE_PASSWORD_OID, diff --git a/src/x509.c b/src/x509.c index 0ba86dcf0..16478a03a 100644 --- a/src/x509.c +++ b/src/x509.c @@ -13875,6 +13875,10 @@ static int get_dn_attr_by_nid(int n, const char** buf) str = "mail"; len = 4; break; + case WC_NID_pkcs7_data: + str = "pkcs7-data"; + len = 10; + break; default: WOLFSSL_MSG("Attribute type not found"); str = NULL; diff --git a/wolfssl/wolfcrypt/asn.h b/wolfssl/wolfcrypt/asn.h index 1d97b3045..1a4c85617 100644 --- a/wolfssl/wolfcrypt/asn.h +++ b/wolfssl/wolfcrypt/asn.h @@ -912,6 +912,7 @@ extern const WOLFSSL_ObjectInfo wolfssl_object_info[]; #define WC_NID_pkcs7_signed 22 #define WC_NID_pkcs7_enveloped 23 #define WC_NID_pkcs7_signedAndEnveloped 24 +#define WC_NID_pkcs7_data 26 #define WC_NID_pkcs9_emailAddress 48 #define WC_NID_pkcs9_unstructuredName 49 #define WC_NID_pkcs9_contentType 50 /* 1.2.840.113549.1.9.3 */ @@ -988,6 +989,7 @@ extern const WOLFSSL_ObjectInfo wolfssl_object_info[]; #define NID_pkcs7_signed WC_NID_pkcs7_signed #define NID_pkcs7_enveloped WC_NID_pkcs7_enveloped #define NID_pkcs7_signedAndEnveloped WC_NID_pkcs7_signedAndEnveloped +#define NID_pkcs7_data WC_NID_pkcs7_data #define NID_pkcs9_unstructuredName WC_NID_pkcs9_unstructuredName #define NID_pkcs9_contentType WC_NID_pkcs9_contentType #define NID_pkcs9_challengePassword WC_NID_pkcs9_challengePassword