]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Only active the engine code if ssl is enabled. This is how the actual engine
authorDaniel Stenberg <daniel@haxx.se>
Tue, 28 Sep 2004 07:11:32 +0000 (07:11 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 28 Sep 2004 07:11:32 +0000 (07:11 +0000)
member in the struct is used.

lib/url.c

index 611d938cf6596b05e723bd10e85becafd65c09d8..3f40b6b610aaf4cb61f75fc979e91d07135ad7c2 100644 (file)
--- 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