mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
Add pkcs7-data OID support to oidCertNameType for certificate parsing
- Add WC_NID_pkcs7_data case to oidCertNameType switch in OidFromId function - Enables certificate subject parsing to recognize pkcs7-data OID (1.2.840.113549.1.7.1) - Completes the parsing pipeline: ParseCertRelative → GetCertName → GetObjectId → OidFromId - Works with existing display layer and wolfssl_object_info table entry - Allows wolfCLU to show pkcs7-data field in certificate subjects like OpenSSL Co-Authored-By: lealem@wolfssl.com <lealem@wolfssl.com>
This commit is contained in:
@@ -6354,6 +6354,18 @@ const byte* OidFromId(word32 id, word32 type, word32* oidSz)
|
||||
break;
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
#ifdef HAVE_PKCS7
|
||||
case oidCertNameType:
|
||||
switch (id) {
|
||||
case WC_NID_pkcs7_data:
|
||||
oid = pkcs7DataOid;
|
||||
*oidSz = sizeof(pkcs7DataOid);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
#endif /* WOLFSSL_APACHE_HTTPD */
|
||||
#ifdef WOLFSSL_CERT_REQ
|
||||
case oidCsrAttrType:
|
||||
|
Reference in New Issue
Block a user