提交 dbba42bb 编写于 作者: N Nicolas Morey-Chaisemartin 提交者: Junio C Hamano

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: NNicolas Morey-Chaisemartin <nicolas@morey-chaisemartin.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 19079b3e
......@@ -35,11 +35,11 @@ typedef void *SSL;
#include "http.h"
#endif
#if defined(USE_CURL_FOR_IMAP_SEND) && defined(NO_OPENSSL)
/* only available option */
#if defined(USE_CURL_FOR_IMAP_SEND)
/* Always default to curl if it's available. */
#define USE_CURL_DEFAULT 1
#else
/* strictly opt in */
/* We don't have curl, so continue to use the historical implementation */
#define USE_CURL_DEFAULT 0
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册