aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-11 13:40:44 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-11 13:40:44 +0100
commit4eac8a4828fa434d94dc662fe3b5426bf396d7be (patch)
treed74cf37d71bb744b08fe8180daa06d93340500e6 /src/libserver/cfg_utils.c
parente48dc88595c2ddd7be31512ba6677ceff09d7632 (diff)
downloadrspamd-4eac8a4828fa434d94dc662fe3b5426bf396d7be.tar.gz
rspamd-4eac8a4828fa434d94dc662fe3b5426bf396d7be.zip
[Feature] Allow to set ciphers and CA paths in config
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 85fd6af80..9cdedaabe 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -161,6 +161,13 @@ rspamd_config_new (void)
*/
cfg->enable_shutdown_workaround = TRUE;
+ cfg->ssl_ciphers = "HIGH:!aNULL:!kRSA:!PSK:!SRP:!MD5:!RC4";
+#ifndef FREEBSD
+ cfg->ssl_ca_path = "/etc/ssl/certs/ca-certificates.crt";
+#else
+ cfg->ssl_ca_path = "/usr/local/etc/ssl/certs/ca-certificates.crt";
+#endif
+
REF_INIT_RETAIN (cfg, rspamd_config_free);
return cfg;