diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-05 10:08:15 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-05 10:08:15 +0900 |
commit | 24d4e855d95e02a5324c2f3d88cfd5cd19830c2c (patch) | |
tree | 371d954e80394a8e72ef95d6ee7d45312c3f87a9 /src/ftp.h | |
parent | 0b86d50828d05a27de3ff840d6a06407310393c2 (diff) | |
download | wget-24d4e855d95e02a5324c2f3d88cfd5cd19830c2c.tar.gz wget-24d4e855d95e02a5324c2f3d88cfd5cd19830c2c.tar.bz2 wget-24d4e855d95e02a5324c2f3d88cfd5cd19830c2c.zip |
Imported Upstream version 1.17upstream/1.17
Diffstat (limited to 'src/ftp.h')
-rw-r--r-- | src/ftp.h | 25 |
1 files changed, 22 insertions, 3 deletions
@@ -1,7 +1,7 @@ /* Declarations for FTP support. Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, - 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, - Inc. + 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2015 Free Software + Foundation, Inc. This file is part of GNU Wget. @@ -33,6 +33,7 @@ as that of the covered work. */ #define FTP_H #include "host.h" +#include "url.h" /* System types. */ enum stype @@ -53,10 +54,27 @@ enum ustype UST_OTHER }; +#ifdef HAVE_SSL +/* Data channel protection levels (to be used with PBSZ) */ +enum prot_level +{ + PROT_CLEAR = 'C', + PROT_SAFE = 'S', + PROT_CONFIDENTIAL = 'E', + PROT_PRIVATE = 'P' +}; +#endif + uerr_t ftp_response (int, char **); +uerr_t ftp_greeting (int); uerr_t ftp_login (int, const char *, const char *); uerr_t ftp_port (int, int *); uerr_t ftp_pasv (int, ip_address *, int *); +#ifdef HAVE_SSL +uerr_t ftp_auth (int, enum url_scheme); +uerr_t ftp_pbsz (int, int); +uerr_t ftp_prot (int, enum prot_level); +#endif #ifdef ENABLE_IPV6 uerr_t ftp_lprt (int, int *); uerr_t ftp_lpsv (int, ip_address *, int *); @@ -142,11 +160,12 @@ enum wget_ftp_fstatus AVOID_LIST = 0x0008, /* It tells us if during this session we have to avoid to use "LIST". */ - LIST_AFTER_LIST_A_CHECK_DONE = 0x0010 + LIST_AFTER_LIST_A_CHECK_DONE = 0x0010, /* It tells us if we have already checked "LIST" after the first "LIST -a" to handle the case of file/folders named "-a". */ + DATA_CHANNEL_SECURITY = 0x0020 /* Establish a secure data channel */ }; struct fileinfo *ftp_parse_ls (const char *, const enum stype); |