aboutsummaryrefslogtreecommitdiff
path: root/lib/sslgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sslgen.c')
-rw-r--r--lib/sslgen.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/sslgen.c b/lib/sslgen.c
index 1d88ba343..e4fb5fb24 100644
--- a/lib/sslgen.c
+++ b/lib/sslgen.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -397,6 +397,18 @@ void Curl_ssl_close(struct connectdata *conn)
}
}
+CURLcode Curl_ssl_shutdown(struct connectdata *conn, int sockindex)
+{
+ if(conn->ssl[sockindex].use) {
+#ifdef USE_GNUTLS
+ return Curl_gtls_shutdown(conn, sockindex);
+#else
+ return Curl_ossl_shutdown(conn, sockindex);
+#endif
+ }
+ return CURLE_OK;
+}
+
/* Selects an (Open)SSL crypto engine
*/
CURLcode Curl_ssl_set_engine(struct SessionHandle *data, const char *engine)