s to <b>X509_check_host</b>.</p>

<h1 id="RETURN-VALUES">RETURN VALUES</h1>

<p>The functions return 1 for a successful match, 0 for a failed match and -1 for an internal error: typically a memory allocation failure or an ASN.1 decoding error.</p>

<p>All functions can also return -2 if the input is malformed. For example, X509_check_host() returns -2 if the provided <b>name</b> contains embedded NULs.</p>

<h1 id="NOTES">NOTES</h1>

<p>Applications are encouraged to use X509_VERIFY_PARAM_set1_host() rather