1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

Fix compilation errors when building without SSL

This commit is contained in:
Linus Nielsen Feltzing 2007-01-06 10:49:11 +00:00
parent 4750e6f3c5
commit 7515a75206

View File

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