diff lib/ftps.c @ 432:d7ff8d2d43aa

2004-3-17 Brian Masney <masneyb@gftp.org> * lib/ftpcommon.h lib/ftps.c - removed encrypted_connection variable from the rfc959_parms structure * lib/rfc959.c (rfc959_copy_param_options) - fix for FTPS protocol so that the proper read/write function is setup whenever the request structure is copied
author masneyb
date Wed, 17 Mar 2004 18:40:41 +0000
parents 1ffdbc487a70
children 3fc895f61665
line wrap: on
line diff
--- a/lib/ftps.c	Wed Mar 17 18:01:48 2004 +0000
+++ b/lib/ftps.c	Wed Mar 17 18:40:41 2004 +0000
@@ -83,7 +83,6 @@
     {
       params->data_conn_read = gftp_ssl_read;
       params->data_conn_write = gftp_ssl_write;
-      params->encrypted_connection = 1;
     }
   else
     {
@@ -93,7 +92,6 @@
 
       params->data_conn_read = gftp_fd_read;
       params->data_conn_write = gftp_fd_write;
-      params->encrypted_connection = 0;
     }
 
   return (0);
@@ -124,9 +122,9 @@
 
   params = request->protocol_data;
   request->protonum = GFTP_FTPS_NUM;
+  request->init = ftps_init;
   params->auth_tls_start = ftps_auth_tls_start;
   request->get_next_file = ftps_get_next_file;
-  request->init = ftps_init;
   request->post_connect = NULL;
   request->url_prefix = g_strdup ("ftps");