aboutsummaryrefslogtreecommitdiff
path: root/lib/gtls.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2007-02-20 22:02:11 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2007-02-20 22:02:11 +0000
commit2f5e99ca02b6716fdac59c299ab7738a2077743d (patch)
treed0c1fc8f0681b1770f93e3bccd4329b94807dfbf /lib/gtls.c
parent6014c21bc96b40eeb7a94fe7f6dbb182af0ba0ae (diff)
New FTP CCC functionality - adds passive and active mode to accomodate for different server behaviour
Diffstat (limited to 'lib/gtls.c')
-rw-r--r--lib/gtls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gtls.c b/lib/gtls.c
index daf69aafe..f8c103450 100644
--- a/lib/gtls.c
+++ b/lib/gtls.c
@@ -533,6 +533,9 @@ int Curl_gtls_shutdown(struct connectdata *conn, int sockindex)
response. Thus we wait for a close notify alert from the server, but
we do not send one. Let's hope other servers do the same... */
+ if(data->set.ftp_ccc == CURLFTPSSL_CCC_ACTIVE)
+ gnutls_bye(conn->ssl[sockindex].session, GNUTLS_SHUT_WR);
+
if(conn->ssl[sockindex].session) {
while(!done) {
int what = Curl_select(conn->sock[sockindex],