Skip to content

Commit 3e606ea

Browse files
committed
Merge branch 'vl/maint-openssl-signature-change' into maint
* vl/maint-openssl-signature-change: imap-send.c: fix compiler warnings for OpenSSL 1.0
2 parents 8d324bf + 1e380dd commit 3e606ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

imap-send.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,12 @@ static int ssl_socket_connect(struct imap_socket *sock, int use_tls_only, int ve
272272
#ifdef NO_OPENSSL
273273
fprintf(stderr, "SSL requested but SSL support not compiled in\n");
274274
return -1;
275+
#else
276+
#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
277+
const SSL_METHOD *meth;
275278
#else
276279
SSL_METHOD *meth;
280+
#endif
277281
SSL_CTX *ctx;
278282
int ret;
279283

0 commit comments

Comments
 (0)