From 7555c9337f4087956aa5c2068134db6043171946 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 5 Jun 2008 15:13:45 +0000 Subject: [PATCH] Update from stable branch. --- ssl/ssl_lib.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index fc41a3bf17..736423fd15 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1608,6 +1608,12 @@ SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth) { ENGINE *eng; 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)) ERR_clear_error(); } -- 2.25.1