Check whether the certificate Common Name satisfies Name Constraints.
Declared in <openssl/x509v3.h>
int
NAME_CONSTRAINTS_check_CN(
X509* x,
NAME_CONSTRAINTS* nc);
X509_V_OK (0) if compliant, or an X509_V_ERR_* code on violation or error.
| Name | Description |
|---|---|
| x | Certificate whose subject CN is checked when not already covered by a DNS SAN. |
| nc | Name Constraints extension value to apply. |