aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2007-01-06 10:49:11 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2007-01-06 10:49:11 +0000
commit7515a75206aee8f0e3c78301b4e8ce80f7aa9c98 (patch)
tree81a0f440f5d1941d98960209e0d368be78f2ef89 /lib
parent4750e6f3c5fd42e19998242ddb63d7d5506b9fd9 (diff)
Fix compilation errors when building without SSL
Diffstat (limited to 'lib')
-rw-r--r--lib/sslgen.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/sslgen.c b/lib/sslgen.c
index e4fb5fb24..cc9642b66 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;
}