aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-09-16 21:45:16 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-09-16 21:45:16 +0000
commit6a06667cc0a6915510a7f3d789a0bcf470a9b7d8 (patch)
treefa6d0a95714ca164794fcb16ba4d64f1bfcbcfa6 /include
parent25bf23105d0ae927a9b62a1d4f4f30312481955f (diff)
Added CURLOPT_FTPSSLAUTH
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index 4da5f1aa1..767a833c8 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -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;