Hi,
Ok, i've put together a small patch that should write an error to the log file if either the ssl_certificate_file or rsa_private_key_file are not defined in the ircd.conf.


Steve
--- ircd-hybrid-7.0.3/src/listener.c    2005-02-07 23:16:15.000000000 +0000
+++ client-ssl-error/src/listener.c     2005-02-08 00:43:36.000000000 +0000
@@ -37,6 +37,7 @@
 #include "send.h"
 #include "memory.h"
 #include "setup.h"
+#include "s_log.h"
 
 #ifdef HAVE_LIBCRYPTO
 #include <openssl/bio.h>
@@ -282,6 +283,14 @@
   if (port == 0)
     return;
 
+#ifdef HAVE_LIBCRYPTO
+  if (is_ssl && (ServerInfo.ssl_certificate_file == NULL || 
ServerInfo.rsa_private_key_file == NULL))
+  {
+      ilog(L_ERROR, "Error opening ssl listen port -- no ssl certificate 
and/or rsa private key file.");
+      return;
+  }
+#endif
+
 #ifdef IPV6
   copy_s_addr(IN_ADDR(vaddr), &in6addr_any);
 #else

Reply via email to