Update from stable branch.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 5 Jun 2008 15:13:45 +0000 (15:13 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 5 Jun 2008 15:13:45 +0000 (15:13 +0000)
ssl/ssl_lib.c

index fc41a3b..736423f 100644 (file)
@@ -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();
        }