diff options
| author | manuel <manuel@mausz.at> | 2018-09-17 18:01:21 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2018-09-17 18:01:21 +0200 |
| commit | 6ce418f63ceeda3d02246c6044c969d5f8f08b26 (patch) | |
| tree | 4d3745f697373dbde0f966148f0d7a88a32c5e56 | |
| parent | 2280dac6e0e98ea11e178b1331cde5ced97a4b36 (diff) | |
| download | qmail-6ce418f63ceeda3d02246c6044c969d5f8f08b26.tar.gz qmail-6ce418f63ceeda3d02246c6044c969d5f8f08b26.tar.bz2 qmail-6ce418f63ceeda3d02246c6044c969d5f8f08b26.zip | |
Enable PRIORITIZE_CHACHA per default
| -rw-r--r-- | qmail-remote.c | 2 | ||||
| -rw-r--r-- | qmail-smtpd.c | 5 | ||||
| -rw-r--r-- | realrcptto.c | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/qmail-remote.c b/qmail-remote.c index 94bb69f..58437da 100644 --- a/qmail-remote.c +++ b/qmail-remote.c | |||
| @@ -486,7 +486,7 @@ int tls_init() | |||
| 486 | smtptext.len = 0; | 486 | smtptext.len = 0; |
| 487 | tls_quit_error("ZTLS error initializing ctx"); | 487 | tls_quit_error("ZTLS error initializing ctx"); |
| 488 | } | 488 | } |
| 489 | SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3); | 489 | SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv3); |
| 490 | 490 | ||
| 491 | if (servercert) { | 491 | if (servercert) { |
| 492 | if (!SSL_CTX_load_verify_locations(ctx, servercert, NULL)) { | 492 | if (!SSL_CTX_load_verify_locations(ctx, servercert, NULL)) { |
diff --git a/qmail-smtpd.c b/qmail-smtpd.c index 5b862a0..d5be4af 100644 --- a/qmail-smtpd.c +++ b/qmail-smtpd.c | |||
| @@ -1432,8 +1432,9 @@ void tls_init() | |||
| 1432 | /* a new SSL context with the bare minimum of options */ | 1432 | /* a new SSL context with the bare minimum of options */ |
| 1433 | ctx = SSL_CTX_new(SSLv23_server_method()); | 1433 | ctx = SSL_CTX_new(SSLv23_server_method()); |
| 1434 | if (!ctx) { tls_err("unable to initialize ctx"); return; } | 1434 | if (!ctx) { tls_err("unable to initialize ctx"); return; } |
| 1435 | SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | | 1435 | SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv3 | |
| 1436 | SSL_OP_CIPHER_SERVER_PREFERENCE); | 1436 | SSL_OP_CIPHER_SERVER_PREFERENCE | |
| 1437 | SSL_OP_PRIORITIZE_CHACHA); | ||
| 1437 | 1438 | ||
| 1438 | if (!SSL_CTX_use_certificate_chain_file(ctx, servercert)) | 1439 | if (!SSL_CTX_use_certificate_chain_file(ctx, servercert)) |
| 1439 | { SSL_CTX_free(ctx); tls_err("missing certificate"); return; } | 1440 | { SSL_CTX_free(ctx); tls_err("missing certificate"); return; } |
diff --git a/realrcptto.c b/realrcptto.c index e211654..93a7aad 100644 --- a/realrcptto.c +++ b/realrcptto.c | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | #include <sys/stat.h> | 2 | #include <sys/stat.h> |
| 3 | #include <stdlib.h> | 3 | #include <stdlib.h> |
| 4 | #include <pwd.h> | 4 | #include <pwd.h> |
| 5 | #include <string.h> | ||
| 5 | #include "auto_break.h" | 6 | #include "auto_break.h" |
| 6 | #include "auto_usera.h" | 7 | #include "auto_usera.h" |
| 7 | #include "byte.h" | 8 | #include "byte.h" |
| @@ -17,6 +18,7 @@ | |||
| 17 | #include "substdio.h" | 18 | #include "substdio.h" |
| 18 | #include "env.h" | 19 | #include "env.h" |
| 19 | #include "slurpclose.h" | 20 | #include "slurpclose.h" |
| 21 | #include "control.h" | ||
| 20 | #include "readwrite.h" | 22 | #include "readwrite.h" |
| 21 | 23 | ||
| 22 | extern void die_nomem(); | 24 | extern void die_nomem(); |
