Mercurial > gftp.yaz
changeset 969:e95ae20ddf0e
2008-11-30 Brian Masney <masneyb@gftp.org>
* lib/ftps.c - warning fixes for the FTPS protocol when OpenSSL
support is disabled.
author | masneyb |
---|---|
date | Sun, 30 Nov 2008 14:41:36 +0000 |
parents | ce365745f7ba |
children | 4c7a58ef26c1 |
files | lib/ftps.c |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ftps.c Sun Nov 30 14:29:48 2008 +0000 +++ b/lib/ftps.c Sun Nov 30 14:41:36 2008 +0000 @@ -101,6 +101,19 @@ return (0); } + +/*@unused@*/ 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)); +} + #endif