aboutsummaryrefslogtreecommitdiff
path: root/lib/ssluse.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/ssluse.c
parent6014c21bc96b40eeb7a94fe7f6dbb182af0ba0ae (diff)
New FTP CCC functionality - adds passive and active mode to accomodate for different server behaviour
Diffstat (limited to 'lib/ssluse.c')
-rw-r--r--lib/ssluse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c
index dc4fc927c..b362ab3f2 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -749,6 +749,9 @@ int Curl_ossl_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)
+ (void)SSL_shutdown(connssl->handle);
+
if(connssl->handle) {
while(!done) {
int what = Curl_select(conn->sock[sockindex],