diff options
Diffstat (limited to 'qmail-remote.c')
| -rw-r--r-- | qmail-remote.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qmail-remote.c b/qmail-remote.c index b5fd940..d0f2fc3 100644 --- a/qmail-remote.c +++ b/qmail-remote.c | |||
| @@ -468,6 +468,8 @@ static int tls_init(struct ip_mx *current_mx) | |||
| 468 | tls_quit_error("ZTLS error initializing ctx"); | 468 | tls_quit_error("ZTLS error initializing ctx"); |
| 469 | } | 469 | } |
| 470 | SSL_CTX_set_min_proto_version(ctx, TLS1_VERSION); | 470 | SSL_CTX_set_min_proto_version(ctx, TLS1_VERSION); |
| 471 | /* TLS renegotiation is possible cpu resource attack */ | ||
| 472 | SSL_CTX_set_options(ctx, SSL_OP_NO_RENEGOTIATION); | ||
| 471 | 473 | ||
| 472 | /* we verify ourself below. see SSL_get_verify_result */ | 474 | /* we verify ourself below. see SSL_get_verify_result */ |
| 473 | SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, NULL); | 475 | SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, NULL); |
