From 2280dac6e0e98ea11e178b1331cde5ced97a4b36 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 28 Jun 2018 12:32:10 +0200 Subject: More OpenSSL 1.1 compatibility --- qmail-smtpd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qmail-smtpd.c b/qmail-smtpd.c index f40a4c5..5b862a0 100644 --- a/qmail-smtpd.c +++ b/qmail-smtpd.c @@ -63,6 +63,8 @@ char *relayclient; #ifdef TLS # include +# include +# include # include "tls.h" # include "ssl_timeoutio.h" @@ -1379,11 +1381,13 @@ static EC_GROUP *ssl_ec_GetParamFromFile(const char *file) return group; } +#if !defined(SSL_set_ecdh_auto) static EC_KEY *tmp_ecdh_cb(SSL *ssl, int export, int keylen) { return EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); } #endif +#endif /* don't want to fail handshake if cert isn't verifiable */ int verify_cb(int preverify_ok, X509_STORE_CTX *ctx) { return 1; } -- cgit v1.2.3