aboutsummaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-07-12 22:10:13 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-07-13 00:13:14 +0200
commite86dc2fbcd96482e997ff0fc8ffef203277a29ed (patch)
treefec7d17f9071d8024786894d69f9b099430459ae /degesch.c
parentde61f9ce5b2c10692ce9b7850e2979c47dd338fb (diff)
downloadxK-e86dc2fbcd96482e997ff0fc8ffef203277a29ed.tar.gz
xK-e86dc2fbcd96482e997ff0fc8ffef203277a29ed.tar.xz
xK-e86dc2fbcd96482e997ff0fc8ffef203277a29ed.zip
Disable SSL 2 and 3
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index 5ef0bc2..325ea83 100644
--- a/degesch.c
+++ b/degesch.c
@@ -3895,6 +3895,9 @@ transport_tls_init_ctx (struct server *s, SSL_CTX *ssl_ctx, struct error **e)
SSL_CTX_set_mode (ssl_ctx,
SSL_MODE_ENABLE_PARTIAL_WRITE | SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
+ // Disable deprecated protocols (see RFC 7568)
+ SSL_CTX_set_options (ssl_ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3);
+
const char *ca_file = get_config_string (s->config, "ssl_ca_file");
const char *ca_path = get_config_string (s->config, "ssl_ca_path");