mirror of
https://github.com/curl/curl.git
synced 2026-07-24 02:47:17 +03:00
Fix compilation errors when building without SSL
This commit is contained in:
parent
4750e6f3c5
commit
7515a75206
1 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue