From: Linus Nielsen Feltzing Date: Sat, 6 Jan 2007 10:49:11 +0000 (+0000) Subject: Fix compilation errors when building without SSL X-Git-Tag: curl-7_16_1~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7515a75206aee8f0e3c78301b4e8ce80f7aa9c98;p=thirdparty%2Fcurl.git Fix compilation errors when building without SSL --- diff --git a/lib/sslgen.c b/lib/sslgen.c index e4fb5fb241..cc9642b66e 100644 --- a/lib/sslgen.c +++ b/lib/sslgen.c @@ -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; }