aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/extra
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-10-22 20:45:22 +0100
committerGravatar Sadie Powell2022-10-23 14:51:33 +0100
commit859088dac5b937208c7aff7fd3976bbc63329281 (patch)
tree79b297813d7f2cb13e6967486340912ad72d0477 /src/modules/extra
parentAvoid spamming opers with notices when a SQL log provider is down. (diff)
More const correctness.
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp2
-rw-r--r--src/modules/extra/m_ssl_mbedtls.cpp2
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index 1c148b36c..fcd58c6cc 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -1091,7 +1091,7 @@ class ModuleSSLGnuTLS final
GnuTLS::Profile::Config profileconfig(name, tag);
prov = std::make_shared<GnuTLSIOHookProvider>(this, profileconfig);
}
- catch (CoreException& ex)
+ catch (const CoreException& ex)
{
throw ModuleException(this, "Error while initializing TLS profile \"" + name + "\" at " + tag->source.str() + " - " + ex.GetReason());
}
diff --git a/src/modules/extra/m_ssl_mbedtls.cpp b/src/modules/extra/m_ssl_mbedtls.cpp
index be395b2be..ee9609cc7 100644
--- a/src/modules/extra/m_ssl_mbedtls.cpp
+++ b/src/modules/extra/m_ssl_mbedtls.cpp
@@ -919,7 +919,7 @@ private:
mbedTLS::Profile::Config profileconfig(name, tag, ctr_drbg);
prov = std::make_shared<mbedTLSIOHookProvider>(this, profileconfig);
}
- catch (CoreException& ex)
+ catch (const CoreException& ex)
{
throw ModuleException(this, "Error while initializing TLS profile \"" + name + "\" at " + tag->source.str() + " - " + ex.GetReason());
}
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index 7b73ee435..a38813f26 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -958,7 +958,7 @@ class ModuleSSLOpenSSL final
{
prov = std::make_shared<OpenSSLIOHookProvider>(this, name, tag);
}
- catch (CoreException& ex)
+ catch (const CoreException& ex)
{
throw ModuleException(this, "Error while initializing TLS profile \"" + name + "\" at " + tag->source.str() + " - " + ex.GetReason());
}