Subject raw should be populated with WOLFSSL_CERT_EXT.

This commit is contained in:
David Garske
2021-12-06 14:19:32 -08:00
parent be870e742d
commit 579056a2f3

View File

@@ -10876,7 +10876,7 @@ static int GetCertName(DecodedCert* cert, char* full, byte* hash, int nameType,
cert->issuerRawLen = length; cert->issuerRawLen = length;
} }
#endif #endif
#ifndef IGNORE_NAME_CONSTRAINTS #if !defined(IGNORE_NAME_CONSTRAINTS) || defined(WOLFSSL_CERT_EXT)
if (nameType == SUBJECT) { if (nameType == SUBJECT) {
cert->subjectRaw = &input[srcIdx]; cert->subjectRaw = &input[srcIdx];
cert->subjectRawLen = length; cert->subjectRawLen = length;
@@ -11417,7 +11417,7 @@ static int GetCertName(DecodedCert* cert, char* full, byte* hash, int nameType,
cert->issuerRawLen = len; cert->issuerRawLen = len;
} }
#endif #endif
#ifndef IGNORE_NAME_CONSTRAINTS #if !defined(IGNORE_NAME_CONSTRAINTS) || defined(WOLFSSL_CERT_EXT)
/* Store pointer and length to raw subject. */ /* Store pointer and length to raw subject. */
if (nameType == SUBJECT) { if (nameType == SUBJECT) {
cert->subjectRaw = &input[srcIdx]; cert->subjectRaw = &input[srcIdx];