1 commit e94f50bbbe7318eec5b6b165ff73d94bbc9d20b0
2 Author: Michael Tremer <michael.tremer@ipfire.org>
3 Date: Sun Feb 11 11:05:43 2018 +0000
5 crypto: Don't limit to TLSv1 only
7 Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 diff --git a/crypto.c b/crypto.c
10 index 897b55bfdcfc..440c882880b5 100644
13 @@ -93,7 +93,12 @@ smtp_init_crypto(int fd, int feature)
15 SSL_load_error_strings();
17 - meth = TLSv1_client_method();
18 + // Allow any possible version
19 +#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
20 + meth = TLS_client_method();
22 + meth = SSLv23_client_method();
25 ctx = SSL_CTX_new(meth);