diff options
| author | manuel <manuel@mausz.at> | 2018-06-28 12:32:10 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2018-06-28 12:32:10 +0200 |
| commit | 2280dac6e0e98ea11e178b1331cde5ced97a4b36 (patch) | |
| tree | d1b980b7960b0933025ae6016f54d67f402e4945 | |
| parent | 7ec4ffbdbc562c4a2909d9bf4f3093072e0e3ac1 (diff) | |
| download | qmail-2280dac6e0e98ea11e178b1331cde5ced97a4b36.tar.gz qmail-2280dac6e0e98ea11e178b1331cde5ced97a4b36.tar.bz2 qmail-2280dac6e0e98ea11e178b1331cde5ced97a4b36.zip | |
More OpenSSL 1.1 compatibility
| -rw-r--r-- | qmail-smtpd.c | 4 |
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) | ||
| 1382 | static EC_KEY *tmp_ecdh_cb(SSL *ssl, int export, int keylen) | 1385 | static 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 */ |
| 1389 | int verify_cb(int preverify_ok, X509_STORE_CTX *ctx) { return 1; } | 1393 | int verify_cb(int preverify_ok, X509_STORE_CTX *ctx) { return 1; } |
