ificates are added using these functions no certificates added using SSL_CTX_add_extra_chain_cert() will be used.</p>

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

<p>SSL_set_current_cert() with <b>SSL_CERT_SET_SERVER</b> return 1 for success, 2 if no server certificate is used because the cipher suites is anonymous and 0 for failure.</p>

<p>SSL_CTX_build_cert_chain() and SSL_build_cert_chain() return 1 for success and 0 for failure. If the flag <b>SSL_BUILD_CHAIN_FLAG_IGNORE_ERROR</b> and a verification err