summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-22 22:01:12 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-22 22:01:12 +0000
commitb0c23d7cdcc69ff886337fe3467fc479e0eb1d2a (patch)
tree32c91812a9cb32746d71805dc7a45d0e3f1840b8 /src/modules
parent5b530373b009d0e9eea27ba2d3aa5952a8fb6fa5 (diff)
Make errors loading certificates DEFAULT level
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2843 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index ddb32b5f0..9f0770ae4 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -72,11 +72,11 @@ class ModuleSSL : public Module
gnutls_global_init(); // This must be called once in the program
if(gnutls_certificate_allocate_credentials(&x509_cred) != 0)
- log(DEBUG, "m_ssl_gnutls.so: Failed to allocate certificate credentials");
+ log(DEFAULT, "m_ssl_gnutls.so: Failed to allocate certificate credentials");
// Guessing return meaning
if(gnutls_dh_params_init(&dh_params) < 0)
- log(DEBUG, "m_ssl_gnutls.so: Failed to initialise DH parameters");
+ log(DEFAULT, "m_ssl_gnutls.so: Failed to initialise DH parameters");
OnRehash("");
@@ -134,14 +134,14 @@ class ModuleSSL : public Module
dh_bits = 1024;
if(gnutls_certificate_set_x509_trust_file(x509_cred, cafile.c_str(), GNUTLS_X509_FMT_PEM) < 0)
- log(DEBUG, "m_ssl_gnutls.so: Failed to set X.509 trust file: %s", cafile.c_str());
+ log(DEFAULT, "m_ssl_gnutls.so: Failed to set X.509 trust file: %s", cafile.c_str());
if(gnutls_certificate_set_x509_crl_file (x509_cred, crlfile.c_str(), GNUTLS_X509_FMT_PEM) < 0)
- log(DEBUG, "m_ssl_gnutls.so: Failed to set X.509 CRL file: %s", crlfile.c_str());
+ log(DEFAULT, "m_ssl_gnutls.so: Failed to set X.509 CRL file: %s", crlfile.c_str());
// Guessing on the return value of this, manual doesn't say :|
if(gnutls_certificate_set_x509_key_file (x509_cred, certfile.c_str(), keyfile.c_str(), GNUTLS_X509_FMT_PEM) < 0)
- log(DEBUG, "m_ssl_gnutls.so: Failed to set X.509 certificate and key files: %s and %s", certfile.c_str(), keyfile.c_str());
+ log(DEFAULT, "m_ssl_gnutls.so: Failed to set X.509 certificate and key files: %s and %s", certfile.c_str(), keyfile.c_str());
// Generate Diffie Hellman parameters - for use with DHE
// kx algorithms. These should be discarded and regenerated
@@ -149,7 +149,7 @@ class ModuleSSL : public Module
// security requirements.
if(gnutls_dh_params_generate2(dh_params, dh_bits) < 0)
- log(DEBUG, "m_ssl_gnutls.so: Failed to generate DH parameters (%d bits)", dh_bits);
+ log(DEFAULT, "m_ssl_gnutls.so: Failed to generate DH parameters (%d bits)", dh_bits);
}
virtual ~ModuleSSL()