From 859088dac5b937208c7aff7fd3976bbc63329281 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 22 Oct 2022 20:45:22 +0100 Subject: More const correctness. --- src/modules/extra/m_ssl_gnutls.cpp | 2 +- src/modules/extra/m_ssl_mbedtls.cpp | 2 +- src/modules/extra/m_ssl_openssl.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/extra') 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(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(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(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()); } -- cgit v1.3.1-10-gc9f91