aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-11-23 15:36:24 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-11-23 15:36:24 +0000
commit78fb47667780ab7a793d6f4cbe5c6e8db42b1369 (patch)
tree8f0a509ac7632fd3cd83b6b2ebfe80254536f425 /include
parent3fed12a2037cfb26e8c4b4fe6f5df1a3f260c408 (diff)
FTPSSL support options and defines added
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index c3c41b4d2..23c89b721 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -218,6 +218,7 @@ typedef enum {
CURLE_BAD_CONTENT_ENCODING, /* 61 - Unrecognized transfer encoding */
CURLE_LDAP_INVALID_URL, /* 62 - Invalid LDAP URL */
CURLE_FILESIZE_EXCEEDED, /* 63 - Maximum file size exceeded */
+ CURLE_FTP_SSL_FAILED, /* 64 - Requested FTP SSL level failed */
CURL_LAST /* never use! */
} CURLcode;
@@ -256,6 +257,14 @@ typedef enum {
#define CURL_ERROR_SIZE 256
+typedef enum {
+ CURLFTPSSL_NONE, /* do not attempt to use SSL */
+ CURLFTPSSL_TRY, /* try using SSL, proceed anyway otherwise */
+ CURLFTPSSL_CONTROL, /* SSL for the control connection or fail */
+ CURLFTPSSL_ALL, /* SSL for all communication or fail */
+ CURLFTPSSL_LAST /* not an option, never use */
+} curl_ftpssl;
+
/* long may be 32 or 64 bits, but we should never depend on anything else
but 32 */
#define CURLOPTTYPE_LONG 0
@@ -699,6 +708,13 @@ typedef enum {
file in there. */
CINIT(NETRC_FILE, OBJECTPOINT, 115),
+ /* Enable SSL/TLS for FTP, pick one of:
+ CURLFTPSSL_TRY - try using SSL, proceed anyway otherwise
+ CURLFTPSSL_CONTROL - SSL for the control connection or fail
+ CURLFTPSSL_ALL - SSL for all communication or fail
+ */
+ CINIT(FTP_SSL, LONG, 116),
+
CURLOPT_LASTENTRY /* the last unused */
} CURLoption;