summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-11-15 23:07:27 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-11-15 23:07:27 -0800
commit3e606ea7ca432c084677ecd52d64650cceef2e77 (patch)
treec57b263d07a1a93ac9b7b4864285a1dafaf1538c
parentMerge branch 'jk/maint-push-config' into maint (diff)
parentimap-send.c: fix compiler warnings for OpenSSL 1.0 (diff)
downloadtgif-3e606ea7ca432c084677ecd52d64650cceef2e77.tar.xz
Merge branch 'vl/maint-openssl-signature-change' into maint
* vl/maint-openssl-signature-change: imap-send.c: fix compiler warnings for OpenSSL 1.0
-rw-r--r--imap-send.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/imap-send.c b/imap-send.c
index 3847fd151d..f805c6ed81 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -273,7 +273,11 @@ static int ssl_socket_connect(struct imap_socket *sock, int use_tls_only, int ve
fprintf(stderr, "SSL requested but SSL support not compiled in\n");
return -1;
#else
+#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
+ const SSL_METHOD *meth;
+#else
SSL_METHOD *meth;
+#endif
SSL_CTX *ctx;
int ret;