diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-10-03 23:50:54 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-10-03 23:50:54 +0200 |
commit | af5e651cc73d0a0d599c03bc95955f8f9c314680 (patch) | |
tree | 41bb227f9a6964a4db7137aaf0da2878fd9ff03a /src | |
parent | 4343bbb67aea2c2a23844bca1dab6488cd1402f1 (diff) |
m_ssl_gnutls Re-set DH params when the gnutls_certificate_credentials_t struct is reallocated
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index 6a6a7923a..7934c23ab 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -281,8 +281,6 @@ class ModuleSSLGnuTLS : public Module ServerInstance->GenRandom = &randhandler; - // Void return, guess we assume success - gnutls_certificate_set_dh_params(x509_cred, dh_params); Implementation eventlist[] = { I_On005Numeric, I_OnRehash, I_OnModuleRehash, I_OnUserConnect, I_OnEvent, I_OnHookIO }; ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); @@ -487,6 +485,8 @@ class ModuleSSLGnuTLS : public Module { GenerateDHParams(); } + + gnutls_certificate_set_dh_params(x509_cred, dh_params); } void GenerateDHParams() |