Mercurial > gftp.yaz
comparison lib/ftps.c @ 968:ce365745f7ba
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:29:48 +0000 |
parents | 9a6571938f89 |
children | e95ae20ddf0e |
comparison
equal
deleted
inserted
replaced
967:a18b1e9fa53b | 968:ce365745f7ba |
---|---|
111 ssl_register_module (); | 111 ssl_register_module (); |
112 #endif | 112 #endif |
113 } | 113 } |
114 | 114 |
115 | 115 |
116 /*@unused@*/ static int | |
117 ftps_connect (gftp_request * request) | |
118 { | |
119 if (request->datafd > 0) | |
120 return (0); | |
121 | |
122 request->read_function = gftp_fd_read; | |
123 request->write_function = gftp_fd_write; | |
124 | |
125 return (rfc959_connect (request)); | |
126 } | |
127 | |
128 | |
129 int | 116 int |
130 ftps_init (gftp_request * request) | 117 ftps_init (gftp_request * request) |
131 { | 118 { |
132 #ifdef USE_SSL | 119 #ifdef USE_SSL |
133 rfc959_parms * params; | 120 rfc959_parms * params; |