Mercurial > gftp.yaz
diff lib/ftps.c @ 451:83cfffb2878a
2004-3-26 Brian Masney <masneyb@gftp.org>
* lib/ftps.c lib/gftp.h lib/rfc959.c - when reestablishing a connection
to a FTPS host, make sure the initial commands are sent over in
plaintext
* lib/protocols.c - make sure the port is displayed to the user in the
proper byte order when getaddrinfo() is not included on the system
* lib/misc.c (gftp_copy_request) - make sure req->init is not NULL
before attempting to initialize the new request structure. This fixes
a segfault that happened when viewing/editing a local file
(from Chelban Vasile <mail4509@pochtamt.ru>)
* docs/website/generate-gftp-website.pl - updated the STABLE_I386DEB
filename
* docs/website/index.html.in - updated the main website
* docs/website/announce.txt - announcement for the 2.0.17 release
author | masneyb |
---|---|
date | Fri, 26 Mar 2004 21:03:51 +0000 |
parents | 3fc895f61665 |
children | fbb5a02beddb |
line wrap: on
line diff
--- a/lib/ftps.c Wed Mar 24 11:06:41 2004 +0000 +++ b/lib/ftps.c Fri Mar 26 21:03:51 2004 +0000 @@ -113,6 +113,19 @@ } +static int +ftps_connect (gftp_request * request) +{ + if (request->datafd > 0) + return (0); + + request->read_function = gftp_fd_read; + request->write_function = gftp_fd_write; + + return (rfc959_connect (request)); +} + + int ftps_init (gftp_request * request) { @@ -128,6 +141,7 @@ params = request->protocol_data; request->protonum = GFTP_FTPS_NUM; request->init = ftps_init; + request->connect = ftps_connect; params->auth_tls_start = ftps_auth_tls_start; request->get_next_file = ftps_get_next_file; request->post_connect = NULL;