mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Struct-pack stream-related data in ftpbuf (#12877)
This commit is contained in:
@@ -2145,7 +2145,7 @@ ftp_nb_continue_read(ftpbuf_t *ftp)
|
||||
{
|
||||
databuf_t *data = NULL;
|
||||
char *ptr;
|
||||
int lastch;
|
||||
char lastch;
|
||||
size_t rcvd;
|
||||
ftptype_t type;
|
||||
|
||||
|
||||
@@ -70,18 +70,18 @@ typedef struct ftpbuf
|
||||
int autoseek; /* User configurable autoseek flag */
|
||||
int usepasvaddress; /* Use the address returned by the pasv command */
|
||||
|
||||
int nb; /* "nonblocking" transfer in progress */
|
||||
databuf_t *data; /* Data connection for "nonblocking" transfers */
|
||||
php_stream *stream; /* output stream for "nonblocking" transfers */
|
||||
int lastch; /* last char of previous call */
|
||||
int direction; /* recv = 0 / send = 1 */
|
||||
int closestream;/* close or not close stream */
|
||||
bool nb; /* "nonblocking" transfer in progress */
|
||||
char lastch; /* last char of previous call */
|
||||
bool direction; /* recv = 0 / send = 1 */
|
||||
bool closestream;/* close or not close stream */
|
||||
#ifdef HAVE_FTP_SSL
|
||||
int use_ssl; /* enable(1) or disable(0) ssl */
|
||||
int use_ssl_for_data; /* en/disable ssl for the dataconnection */
|
||||
int old_ssl; /* old mode = forced data encryption */
|
||||
bool use_ssl; /* enable(1) or disable(0) ssl */
|
||||
bool use_ssl_for_data; /* en/disable ssl for the dataconnection */
|
||||
bool old_ssl; /* old mode = forced data encryption */
|
||||
bool ssl_active; /* ssl active on control conn */
|
||||
SSL *ssl_handle; /* handle for control connection */
|
||||
int ssl_active; /* ssl active on control conn */
|
||||
SSL_SESSION *last_ssl_session; /* last negotiated session */
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user