curl-library
[ curl-Bugs-1034084 ] openssl with noengine fails
Date: Fri, 24 Sep 2004 07:43:22 -0700
Bugs item #1034084, was opened at 2004-09-24 07:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1034084&group_id=976
Category: None
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: openssl with noengine fails
Initial Comment:
Message from Peter.Sylvester_at_edelweb.fr
src/main.c unconditionallly sets an ssl engine (even with
a null value).
if openssl has no engine enabled, lib/url.c returns
always code 53, even if the parameter is null.
Suggested solution in lib/curl.c
case CURLOPT_SSLENGINE:
/*
* String that holds the SSL crypto engine.
*/
{
const char *cpTemp = va_arg(param, char *);
if (cpTemp && cpTemp[0]) {
#ifdef HAVE_OPENSSL_ENGINE_H
ENGINE *e = ENGINE_by_id(cpTemp);
if (e) {
if (data->engine) {
ENGINE_free(data->engine);
}
data->engine = e;
}
else {
failf(data, "SSL Engine '%s' not found", cpTemp);
return CURLE_SSL_ENGINE_NOTFOUND;
}
#else
return CURLE_SSL_ENGINE_NOTFOUND;
#endif
}
}
break;
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1034084&group_id=976
Received on 2004-09-24