From dc059a02a3d8d1f3f509ba31b7618cee001cba93 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Fri, 7 Sep 2018 00:27:45 +0300 Subject: libcurl: update to 7.61.1 --- libs/libcurl/src/setopt.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libs/libcurl/src/setopt.c') diff --git a/libs/libcurl/src/setopt.c b/libs/libcurl/src/setopt.c index 5ecf5b97f3..5c5f4b3817 100644 --- a/libs/libcurl/src/setopt.c +++ b/libs/libcurl/src/setopt.c @@ -1603,14 +1603,19 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, * String that holds the SSL crypto engine. */ argptr = va_arg(param, char *); - if(argptr && argptr[0]) - result = Curl_ssl_set_engine(data, argptr); + if(argptr && argptr[0]) { + result = Curl_setstropt(&data->set.str[STRING_SSL_ENGINE], argptr); + if(!result) { + result = Curl_ssl_set_engine(data, argptr); + } + } break; case CURLOPT_SSLENGINE_DEFAULT: /* * flag to set engine as default. */ + Curl_setstropt(&data->set.str[STRING_SSL_ENGINE], NULL); result = Curl_ssl_set_engine_default(data); break; case CURLOPT_CRLF: -- cgit v1.2.3