summaryrefslogtreecommitdiffstats
path: root/qmail-smtpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'qmail-smtpd.c')
-rw-r--r--qmail-smtpd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/qmail-smtpd.c b/qmail-smtpd.c
index c4b498e..d97dfc5 100644
--- a/qmail-smtpd.c
+++ b/qmail-smtpd.c
@@ -1334,6 +1334,8 @@ void tls_init()
1334 SSL_CTX_set_min_proto_version(ctx, min_ssl_version); 1334 SSL_CTX_set_min_proto_version(ctx, min_ssl_version);
1335 SSL_CTX_set_options(ctx, SSL_OP_CIPHER_SERVER_PREFERENCE | 1335 SSL_CTX_set_options(ctx, SSL_OP_CIPHER_SERVER_PREFERENCE |
1336 SSL_OP_PRIORITIZE_CHACHA); 1336 SSL_OP_PRIORITIZE_CHACHA);
1337 /* TLS renegotiation is possible cpu resource attack */
1338 SSL_CTX_set_options(ctx, SSL_OP_NO_RENEGOTIATION);
1337 1339
1338 /* set the callback here; SSL_set_verify didn't work before 0.9.6c */ 1340 /* set the callback here; SSL_set_verify didn't work before 0.9.6c */
1339 SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, verify_cb); 1341 SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, verify_cb);