Added CURLOPT_FTPSSLAUTH
This commit is contained in:
@@ -303,6 +303,7 @@ typedef enum {
|
||||
|
||||
#define CURL_ERROR_SIZE 256
|
||||
|
||||
/* parameter for the CURLOPT_FTP_SSL option */
|
||||
typedef enum {
|
||||
CURLFTPSSL_NONE, /* do not attempt to use SSL */
|
||||
CURLFTPSSL_TRY, /* try using SSL, proceed anyway otherwise */
|
||||
@@ -311,6 +312,14 @@ typedef enum {
|
||||
CURLFTPSSL_LAST /* not an option, never use */
|
||||
} curl_ftpssl;
|
||||
|
||||
/* parameter for the CURLOPT_FTPSSLAUTH option */
|
||||
typedef enum {
|
||||
CURLFTPAUTH_DEFAULT, /* let libcurl decide */
|
||||
CURLFTPAUTH_SSL, /* use "AUTH SSL" */
|
||||
CURLFTPAUTH_TLS, /* use "AUTH TLS" */
|
||||
CURLFTPAUTH_LAST /* not an option, never use */
|
||||
} curl_ftpauth;
|
||||
|
||||
/* long may be 32 or 64 bits, but we should never depend on anything else
|
||||
but 32 */
|
||||
#define CURLOPTTYPE_LONG 0
|
||||
@@ -813,6 +822,18 @@ typedef enum {
|
||||
of commands with this */
|
||||
CINIT(SOURCE_POSTQUOTE, OBJECTPOINT, 128),
|
||||
|
||||
/* When FTP over SSL/TLS is selected (with CURLOPT_FTP_SSL), this option
|
||||
can be used to change libcurl's default action which is to first try
|
||||
"AUTH SSL" and then "AUTH TLS" in this order, and proceed when a OK
|
||||
response has been received.
|
||||
|
||||
Available parameters are:
|
||||
CURLFTPAUTH_DEFAULT - let libcurl decide
|
||||
CURLFTPAUTH_SSL - try "AUTH SSL" first, then TLS
|
||||
CURLFTPAUTH_TLS - try "AUTH TLS" first, then SSL
|
||||
*/
|
||||
CINIT(FTPSSLAUTH, LONG, 129),
|
||||
|
||||
CURLOPT_LASTENTRY /* the last unused */
|
||||
} CURLoption;
|
||||
|
||||
|
Reference in New Issue
Block a user