aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-09-28 07:11:32 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-09-28 07:11:32 +0000
commit1003628103d98b3a3c077a3531c71e66d50a0085 (patch)
tree20e8ac9f0e739632f487307cc3581986d4ce97db /lib
parent3451e888b97cfeb24a4b949b773e1650c56f77a1 (diff)
Only active the engine code if ssl is enabled. This is how the actual engine
member in the struct is used.
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index 611d938cf..3f40b6b61 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1128,7 +1128,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
{
const char *cpTemp = va_arg(param, char *);
if (cpTemp && cpTemp[0]) {
-#ifdef HAVE_OPENSSL_ENGINE_H
+#if defined(USE_SSLEAY) && defined(HAVE_OPENSSL_ENGINE_H)
ENGINE *e = ENGINE_by_id(cpTemp);
if (e) {
if (data->engine) {
@@ -1152,7 +1152,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
/*
* flag to set engine as default.
*/
-#ifdef HAVE_OPENSSL_ENGINE_H
+#if defined(USE_SSLEAY) && defined(HAVE_OPENSSL_ENGINE_H)
if (data->engine) {
if (ENGINE_set_default(data->engine, ENGINE_METHOD_ALL) > 0) {
#ifdef DEBUG