]> granicus.if.org Git - curl/commitdiff
Fix compilation errors when building without SSL
authorLinus Nielsen Feltzing <linus@haxx.se>
Sat, 6 Jan 2007 10:49:11 +0000 (10:49 +0000)
committerLinus Nielsen Feltzing <linus@haxx.se>
Sat, 6 Jan 2007 10:49:11 +0000 (10:49 +0000)
lib/sslgen.c

index e4fb5fb2411753126177b7e3810631de1069db17..cc9642b66ed31d04c1d3e3f76750cbd1e6f57430 100644 (file)
@@ -400,11 +400,16 @@ void Curl_ssl_close(struct connectdata *conn)
 CURLcode Curl_ssl_shutdown(struct connectdata *conn, int sockindex)
 {
   if(conn->ssl[sockindex].use) {
+#ifdef USE_SSLEAY
+    return Curl_ossl_shutdown(conn, sockindex);
+#else
 #ifdef USE_GNUTLS
     return Curl_gtls_shutdown(conn, sockindex);
 #else
-    return Curl_ossl_shutdown(conn, sockindex);
-#endif
+    (void)conn;
+    (void)sockindex;
+#endif /* USE_GNUTLS */
+#endif /* USE_SSLEAY */
   }
   return CURLE_OK;
 }