From 5799b72178a6e55938712781901e054be3cb7ace Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 4 Jun 2008 20:11:17 +0000 Subject: [PATCH] Oops... missed this part of backport. --- apps/s_client.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/apps/s_client.c b/apps/s_client.c index 9a0989fc42..60a8d13df1 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -673,6 +673,20 @@ bad: goto end; } +#ifndef OPENSSL_NO_ENGINE + if (ssl_client_engine) + { + if (!SSL_CTX_set_client_cert_engine(ctx, ssl_client_engine)) + { + BIO_puts(bio_err, "Error setting client auth engine\n"); + ERR_print_errors(bio_err); + ENGINE_free(ssl_client_engine); + goto end; + } + ENGINE_free(ssl_client_engine); + } +#endif + if (bugs) SSL_CTX_set_options(ctx,SSL_OP_ALL|off); else -- 2.25.1