[#NAME_CONSTRAINTS_check]
= NAME&lowbar;CONSTRAINTS&lowbar;check
:mrdocs:

Check whether certificate subject names satisfy the given Name Constraints&period;

== Synopsis

Declared in `&lt;openssl&sol;x509v3&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
NAME&lowbar;CONSTRAINTS&lowbar;check(
    xref:X509.adoc[X509]* x,
    xref:NAME_CONSTRAINTS.adoc[NAME&lowbar;CONSTRAINTS]* nc);
----

== Return Value

X509&lowbar;V&lowbar;OK (0) if compliant, or an X509&lowbar;V&lowbar;ERR&lowbar;&ast; code on violation or error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| Certificate whose subject and subjectAltName are checked&period;
| *nc*
| Name Constraints extension value to apply&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
