diff options
| author | Stefan Esser <sesser@php.net> | 2002-10-03 11:33:05 +0000 |
|---|---|---|
| committer | Stefan Esser <sesser@php.net> | 2002-10-03 11:33:05 +0000 |
| commit | b220b7113fb12adf41a752fb5b046d9627f5b1bd (patch) | |
| tree | 78ace2e346674b7af958db2febfb425545f3a569 /ext/ftp/ftp.h | |
| parent | d58c3dda9658ed1f6fc81d16eb59b36dab602a63 (diff) | |
| download | php-git-b220b7113fb12adf41a752fb5b046d9627f5b1bd.tar.gz | |
Added ftp_ssl_connect() for FTP over SSL.
Diffstat (limited to 'ext/ftp/ftp.h')
| -rw-r--r-- | ext/ftp/ftp.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/ftp/ftp.h b/ext/ftp/ftp.h index f4c816a3d3..d93f028c28 100644 --- a/ext/ftp/ftp.h +++ b/ext/ftp/ftp.h @@ -49,6 +49,8 @@ typedef struct databuf int fd; /* data connection */ ftptype_t type; /* transfer type */ char buf[FTP_BUFSIZE]; /* data buffer */ + SSL *ssl_handle; /* ssl handle */ + int ssl_active; /* flag if ssl is active or not */ } databuf_t; typedef struct ftpbuf @@ -74,6 +76,14 @@ typedef struct ftpbuf int lastch; /* last char of previous call */ int direction; /* recv = 0 / send = 1 */ int closestream;/* close or not close stream */ +#if HAVE_OPENSSL_EXT + 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 */ + SSL *ssl_handle; /* handle for control connection */ + int ssl_active; /* ssl active on control conn */ +#endif + } ftpbuf_t; |
