#ifdef out a few more functions when SSL is disabled.
authorDan Fandrich <dan@coneharvesters.com>
Tue, 25 Sep 2007 06:45:05 +0000 (06:45 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 25 Sep 2007 06:45:05 +0000 (06:45 +0000)
lib/sslgen.c
lib/ssluse.c

index 3549232..ed57849 100644 (file)
@@ -390,7 +390,7 @@ CURLcode Curl_ssl_addsessionid(struct connectdata *conn,
 }
 
 
-#endif
+#endif /* USE_SSL */
 
 void Curl_ssl_close_all(struct SessionHandle *data)
 {
index 7e4ead7..55f6c84 100644 (file)
@@ -618,8 +618,6 @@ int Curl_ossl_check_cxn(struct connectdata *conn)
   return -1; /* connection status unknown */
 }
 
-#endif /* USE_SSLEAY */
-
 /* Selects an OpenSSL crypto engine
  */
 CURLcode Curl_ossl_set_engine(struct SessionHandle *data, const char *engine)
@@ -654,7 +652,6 @@ CURLcode Curl_ossl_set_engine(struct SessionHandle *data, const char *engine)
 #endif
 }
 
-#ifdef USE_SSLEAY
 /* Sets engine as default for all SSL operations
  */
 CURLcode Curl_ossl_set_engine_default(struct SessionHandle *data)
@@ -674,7 +671,6 @@ CURLcode Curl_ossl_set_engine_default(struct SessionHandle *data)
 #endif
   return CURLE_OK;
 }
-#endif /* USE_SSLEAY */
 
 /* Return list of OpenSSL crypto engine names.
  */
@@ -701,8 +697,6 @@ struct curl_slist *Curl_ossl_engines_list(struct SessionHandle *data)
 }
 
 
-#ifdef USE_SSLEAY
-
 /*
  * This function is called when an SSL connection is closed.
  */
@@ -907,10 +901,7 @@ static int Curl_ASN1_UTCTIME_output(struct connectdata *conn,
   return 0;
 }
 
-#endif
-
 /* ====================================================== */
-#ifdef USE_SSLEAY
 
 /*
  * Match a hostname against a wildcard pattern.
@@ -1150,7 +1141,7 @@ static CURLcode verifyhost(struct connectdata *conn,
   }
   return res;
 }
-#endif
+#endif /* USE_SSLEAY */
 
 /* The SSL_CTRL_SET_MSG_CALLBACK doesn't exist in ancient OpenSSL versions
    and thus this cannot be done there. */