curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

curl_easy_setopt for CURLOPT_SSLENGINE returning error

From: Praveen Pvs via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 7 Aug 2019 11:06:29 +0530

Hi All,

we are trying to set the SSL engine using the curl easy set options.

curl_Ret = curl_easy_setopt(curlHandle, CURLOPT_SSLENGINE,
"engine_keyservice");
if(curl_Ret != CURLE_OK)
{
LOGF_TRACE("can't set crypto engine with Error = %d",curl_Ret );
}

curl_Ret = curl_easy_setopt(curlHandle, CURLOPT_SSLENGINE_DEFAULT, 1L);
if(curl_Ret != CURLE_OK)
{
LOGF_TRACE("can't set crypto engine as default with Error = %d",curl_Ret );
}

But sometimes, the call is getting failed with return code
CURLE_SSL_ENGINE_INITFAILED
<https://curl.haxx.se/libcurl/c/libcurl-errors.html#CURLESSLENGINEINITFAILED> -
Engine found but initialization failed

What could be the reason to get this error? It is not always, but once this
error comes for all communications then on it will be coming. It would go
away once we reboot the device.

Can someone help me here!

Regards

Praveen

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-08-07