If auto load ENGINE lookup fails retry adding builtin ENGINEs.
This commit is contained in:
parent
f01f085cb9
commit
0278e15fa3
@ -1525,6 +1525,12 @@ SSL_CTX *SSL_CTX_new(SSL_METHOD *meth)
|
|||||||
{
|
{
|
||||||
ENGINE *eng;
|
ENGINE *eng;
|
||||||
eng = ENGINE_by_id(eng_str(OPENSSL_SSL_CLIENT_ENGINE_AUTO));
|
eng = ENGINE_by_id(eng_str(OPENSSL_SSL_CLIENT_ENGINE_AUTO));
|
||||||
|
if (!eng)
|
||||||
|
{
|
||||||
|
ERR_clear_error();
|
||||||
|
ENGINE_load_builtin_engines();
|
||||||
|
eng = ENGINE_by_id(eng_str(OPENSSL_SSL_CLIENT_ENGINE_AUTO));
|
||||||
|
}
|
||||||
if (!eng || !SSL_CTX_set_client_cert_engine(ret, eng))
|
if (!eng || !SSL_CTX_set_client_cert_engine(ret, eng))
|
||||||
ERR_clear_error();
|
ERR_clear_error();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user