imap-send: use curl by default when possible
Set curl as the runtime default when it is available. When linked against older curl versions (< 7_34_0) or without curl, use the legacy imap implementation. The goal is to validate feature parity between the legacy and the curl implementation, deprecate the legacy implementation later on and in the long term, hopefully drop it altogether. Signed-off-by: Nicolas Morey-Chaisemartin <nicolas@morey-chaisemartin.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nicolas Morey-Chaisemartin committed
Sep 14, 2017 at 09:52 UTC
dbba42bb32f2e896a5413d401c61a0022652fe2b
1 file changed
+3
-3
imap-send.c
+3
-3
@@ -35,11 +35,11 @@ typedef void *SSL;
35
#include "http.h"
36
#endif
37
38
-#if defined(USE_CURL_FOR_IMAP_SEND) && defined(NO_OPENSSL)
39
-/* only available option */
38
+#if defined(USE_CURL_FOR_IMAP_SEND)
39
+/* Always default to curl if it's available. */
40
#define USE_CURL_DEFAULT 1
41
#else
42
-/* strictly opt in */
42
+/* We don't have curl, so continue to use the historical implementation */
43
#define USE_CURL_DEFAULT 0
44
#endif
45