From 4bc444eb64173f770c1d1dba2ed3db393c2a9b18 Mon Sep 17 00:00:00 2001 From: Modestas Vainius Date: Sun, 7 Apr 2013 22:10:39 +0300 Subject: Support FTP-over-SSL/TLS for regular FTP Add a boolean http.sslTry option which allows to enable AUTH SSL/TLS and encrypted data transfers when connecting via regular FTP protocol. Default is false since it might trigger certificate verification errors on misconfigured servers. Signed-off-by: Modestas Vainius Signed-off-by: Junio C Hamano --- http.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'http.h') diff --git a/http.h b/http.h index 25d1931398..097514dd6f 100644 --- a/http.h +++ b/http.h @@ -42,6 +42,15 @@ #define NO_CURL_IOCTL #endif +/* + * CURLOPT_USE_SSL was known as CURLOPT_FTP_SSL up to 7.16.4, + * and the constants were known as CURLFTPSSL_* +*/ +#if !defined(CURLOPT_USE_SSL) && defined(CURLOPT_FTP_SSL) +#define CURLOPT_USE_SSL CURLOPT_FTP_SSL +#define CURLUSESSL_TRY CURLFTPSSL_TRY +#endif + struct slot_results { CURLcode curl_result; long http_code; -- cgit v1.2.3