Merge pull request #6338 from JacobBarthelmeh/certs

revert WOLFSSL_NO_ASN_STRICT macro guard
pull/6345/head
David Garske 2023-04-26 11:16:04 -07:00 committed by GitHub
commit 3556b7adb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -16555,9 +16555,10 @@ static int ConfirmNameConstraints(Signer* signer, DecodedCert* cert)
}
break;
case ASN_DIR_TYPE:
name = cert->altDirNames;
#ifndef WOLFSSL_NO_ASN_STRICT
name = cert->altDirNames;
#endif
/* RFC 5280 section 4.2.1.10
"Restrictions of the form directoryName MUST be
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.name = (char *)cert->subjectRaw;
}
#endif
break;
default:
/* Other types of names are ignored for now.