summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2026-04-02 21:09:01 +0200
committerLuke Bratch <luke@bratch.co.uk>2026-04-02 21:09:01 +0200
commit4a51c367fa192adba69fac4bf0305ed38290ef19 (patch)
treee3150713e128470fee36065fb6ecdb5f1d5646c8 /config.c
parent83da1b192647a7abc2b8cf8561b221a3c0b3d398 (diff)
Allow configuring the OpenSSL security level, see https://docs.openssl.org/master/man3/SSL_CTX_set_security_level/#default-callback-behaviour for further details.
Diffstat (limited to 'config.c')
-rw-r--r--config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.c b/config.c
index 938b597..2a8db43 100644
--- a/config.c
+++ b/config.c
@@ -406,6 +406,11 @@ int createconfigfile(char *filename) {
"# If clienttls = \"0\" then this need not be set\n"
"#keyfile = \"/home/foo/.blabouncer/key.pem\"\n"
"\n"
+ "# OpenSSL security level, from 0 to 5 at the time of writing, left at the OpenSSL default if undefined,\n"
+ "# see https://docs.openssl.org/master/man3/SSL_CTX_set_security_level/#default-callback-behaviour\n"
+ "# for further details\n"
+ "#sslseclevel = \"2\"\n"
+ "\n"
"# Enable logging (\"1\" for yes or \"0\" for no)\n"
"# Logs go to basedir/logs/ with one file per channel/nick\n"
"logging = \"1\"\n"