summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qmail-smtpd.c4
1 files changed, 4 insertions, 0 deletions
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;
63 63
64#ifdef TLS 64#ifdef TLS
65# include <sys/stat.h> 65# include <sys/stat.h>
66# include <openssl/bn.h>
67# include <openssl/dh.h>
66# include "tls.h" 68# include "tls.h"
67# include "ssl_timeoutio.h" 69# include "ssl_timeoutio.h"
68 70
@@ -1379,11 +1381,13 @@ static EC_GROUP *ssl_ec_GetParamFromFile(const char *file)
1379 return group; 1381 return group;
1380} 1382}
1381 1383
1384#if !defined(SSL_set_ecdh_auto)
1382static EC_KEY *tmp_ecdh_cb(SSL *ssl, int export, int keylen) 1385static EC_KEY *tmp_ecdh_cb(SSL *ssl, int export, int keylen)
1383{ 1386{
1384 return EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); 1387 return EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
1385} 1388}
1386#endif 1389#endif
1390#endif
1387 1391
1388/* don't want to fail handshake if cert isn't verifiable */ 1392/* don't want to fail handshake if cert isn't verifiable */
1389int verify_cb(int preverify_ok, X509_STORE_CTX *ctx) { return 1; } 1393int verify_cb(int preverify_ok, X509_STORE_CTX *ctx) { return 1; }