aboutsummaryrefslogtreecommitdiff
path: root/lib/sslgen.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-01-05 23:11:14 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-01-05 23:11:14 +0000
commit4750e6f3c5fd42e19998242ddb63d7d5506b9fd9 (patch)
treeda414a616a37056c35bda6312721064e7d65839b /lib/sslgen.c
parentb7aaa4d9071227d481eb163887d7dd21535b7ae3 (diff)
- Linus Nielsen Feltzing introduced the --ftp-ssl-ccc command line option to
curl that uses the new CURLOPT_FTP_SSL_CCC option in libcurl. If enabled, it will make libcurl shutdown SSL/TLS after the authentication is done on a FTP-SSL operation.
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)