diff options
| author | 2026-07-12 12:50:48 +0100 | |
|---|---|---|
| committer | 2026-07-12 12:50:48 +0100 | |
| commit | 8197c4f7ccb0bd66d18483e3981be7fa80e69252 (patch) | |
| tree | 9dccfdd0654363180083466e4e63fde583abe646 /src/modules/extra | |
| parent | The WEBIRC command should be able to have an empty last parameter. (diff) | |
Fix setting the OpenSSL groups in relaxed mode. upstream/insp4 upstream/HEAD
Diffstat (limited to 'src/modules/extra')
| -rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index ce3436079..d867ce7a4 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -170,13 +170,16 @@ namespace OpenSSL irc::sepstream groupstream(groups, ':'); for (std::string group; groupstream.GetToken(group); ) { - if (OBJ_sn2nid(group.c_str()) == NID_undef) - continue; + if (!SSL_CTX_set1_groups_list(ctx, group.c_str())) + continue; // Not supported. grouplist.append(grouplist.empty() ? "" : ":"); grouplist.append(group); } + if (grouplist.empty()) + grouplist = "DEFAULT"; + ServerInstance->Logs.Debug(MODNAME, "Relaxed groups from {} to {}", groups, grouplist); } |
