389
|
1 /*****************************************************************************/
|
|
2 /* ftpcommon.h - common data structures for RFC959 and FTPS */
|
|
3 /* Copyright (C) 1998-2003 Brian Masney <masneyb@gftp.org> */
|
|
4 /* */
|
|
5 /* This program is free software; you can redistribute it and/or modify */
|
|
6 /* it under the terms of the GNU General Public License as published by */
|
|
7 /* the Free Software Foundation; either version 2 of the License, or */
|
|
8 /* (at your option) any later version. */
|
|
9 /* */
|
|
10 /* This program is distributed in the hope that it will be useful, */
|
|
11 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
|
12 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
|
13 /* GNU General Public License for more details. */
|
|
14 /* */
|
|
15 /* You should have received a copy of the GNU General Public License */
|
|
16 /* along with this program; if not, write to the Free Software */
|
|
17 /* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
18 /*****************************************************************************/
|
|
19
|
|
20 /* $Id$ */
|
|
21
|
|
22 #include "gftp.h"
|
|
23
|
|
24 struct rfc959_params_tag
|
|
25 {
|
|
26 gftp_getline_buffer * datafd_rbuf,
|
|
27 * dataconn_rbuf;
|
|
28 int data_connection;
|
|
29 unsigned int is_ascii_transfer : 1,
|
647
|
30 is_fxp_transfer : 1;
|
389
|
31 int (*auth_tls_start) (gftp_request * request);
|
390
|
32 ssize_t (*data_conn_read) (gftp_request * request, void *ptr, size_t size,
|
|
33 int fd);
|
|
34 ssize_t (*data_conn_write) (gftp_request * request, const char *ptr,
|
|
35 size_t size, int fd);
|
389
|
36 };
|
|
37
|
|
38 typedef struct rfc959_params_tag rfc959_parms;
|
|
39
|
|
40 int rfc959_send_command ( gftp_request * request,
|
|
41 const char *command,
|
847
|
42 ssize_t command_len,
|
820
|
43 int read_response,
|
|
44 int dont_try_to_reconnect );
|
389
|
45
|