Skip to content

Commit 3556b7a

Browse files
authored
Merge pull request #6338 from JacobBarthelmeh/certs
revert WOLFSSL_NO_ASN_STRICT macro guard
2 parents b42d356 + 71f7107 commit 3556b7a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfcrypt/src/asn.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16555,9 +16555,10 @@ static int ConfirmNameConstraints(Signer* signer, DecodedCert* cert)
1655516555
}
1655616556
break;
1655716557
case ASN_DIR_TYPE:
16558+
#ifndef WOLFSSL_NO_ASN_STRICT
1655816559
name = cert->altDirNames;
16560+
#endif
1655916561

16560-
#ifndef WOLFSSL_NO_ASN_STRICT
1656116562
/* RFC 5280 section 4.2.1.10
1656216563
"Restrictions of the form directoryName MUST be
1656316564
applied to the subject field .... and to any names
@@ -16570,7 +16571,6 @@ static int ConfirmNameConstraints(Signer* signer, DecodedCert* cert)
1657016571
subjectDnsName.len = cert->subjectRawLen;
1657116572
subjectDnsName.name = (char *)cert->subjectRaw;
1657216573
}
16573-
#endif
1657416574
break;
1657516575
default:
1657616576
/* Other types of names are ignored for now.

0 commit comments

Comments
 (0)