0015-S2S-TLS-Verify-the-TLS-certificates-by-default.patch 808 B

123456789101112131415161718192021222324252627
  1. From e622ae80a336ab1be294c7cc65cf538e50e4d1c8 Mon Sep 17 00:00:00 2001
  2. From: Alexander Barton <alex@barton.de>
  3. Date: Sat, 6 Jan 2024 15:55:54 +0100
  4. Subject: [PATCH 15/20] S2S-TLS: Verify the TLS certificates by default
  5. This is already mentioned as the default in the manual page and the
  6. sample configuration file, but was actually not enabled in the code!
  7. (cherry picked from commit 180e2ec1359378172135472148c99a2d14e873cc)
  8. ---
  9. src/ngircd/conf.c | 5 +++++
  10. 1 file changed, 5 insertions(+)
  11. --- a/src/ngircd/conf.c
  12. +++ b/src/ngircd/conf.c
  13. @@ -2467,6 +2467,11 @@
  14. Proc_InitStruct(&Server->res_stat);
  15. Server->conn_id = NONE;
  16. memset(&Server->bind_addr, 0, sizeof(Server->bind_addr));
  17. +
  18. +#ifdef SSL_SUPPORT
  19. + /* Verify SSL connections by default! */
  20. + Server->SSLVerify = true;
  21. +#endif
  22. }
  23. /* -eof- */