about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2024-01-06 15:55:54 +0100
committerAlexander Barton <alex@barton.de>2024-03-23 20:19:01 +0100
commit180e2ec1359378172135472148c99a2d14e873cc (patch)
tree98d4adf090e3870bc9c28c73b4f0ace7f93be61e /src
parent663972c88d3ae3e3226fe6f95ca1113694ce0618 (diff)
downloadngircd-180e2ec1359378172135472148c99a2d14e873cc.tar.gz
ngircd-180e2ec1359378172135472148c99a2d14e873cc.zip
S2S-TLS: Verify the TLS certificates by default
This is already mentioned as the default in the manual page and the
sample configuration file, but was actually not enabled in the code!
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c
index 86a62247..441b8f67 100644
--- a/src/ngircd/conf.c
+++ b/src/ngircd/conf.c
@@ -2338,6 +2338,11 @@ Init_Server_Struct( CONF_SERVER *Server )
 	Proc_InitStruct(&Server->res_stat);
 	Server->conn_id = NONE;
 	memset(&Server->bind_addr, 0, sizeof(Server->bind_addr));
+
+#ifdef SSL_SUPPORT
+	/* Verify SSL connections by default! */
+	Server->SSLVerify = true;
+#endif
 }
 
 /* -eof- */