Skip to content
Snippets Groups Projects
Commit 7515a752 authored by Linus Nielsen's avatar Linus Nielsen
Browse files

Fix compilation errors when building without SSL

parent 4750e6f3
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment