revert WOLFSSL_NO_ASN_STRICT macro guard

This commit is contained in:
JacobBarthelmeh
2023-04-25 13:32:19 -07:00
parent 3e5c8af571
commit 71f71074f8

View File

@ -16555,9 +16555,10 @@ static int ConfirmNameConstraints(Signer* signer, DecodedCert* cert)
} }
break; break;
case ASN_DIR_TYPE: case ASN_DIR_TYPE:
name = cert->altDirNames;
#ifndef WOLFSSL_NO_ASN_STRICT #ifndef WOLFSSL_NO_ASN_STRICT
name = cert->altDirNames;
#endif
/* RFC 5280 section 4.2.1.10 /* RFC 5280 section 4.2.1.10
"Restrictions of the form directoryName MUST be "Restrictions of the form directoryName MUST be
applied to the subject field .... and to any names applied to the subject field .... and to any names
@ -16570,7 +16571,6 @@ static int ConfirmNameConstraints(Signer* signer, DecodedCert* cert)
subjectDnsName.len = cert->subjectRawLen; subjectDnsName.len = cert->subjectRawLen;
subjectDnsName.name = (char *)cert->subjectRaw; subjectDnsName.name = (char *)cert->subjectRaw;
} }
#endif
break; break;
default: default:
/* Other types of names are ignored for now. /* Other types of names are ignored for now.