aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-07-12 12:50:48 +0100
committerGravatar Sadie Powell2026-07-12 12:50:48 +0100
commit8197c4f7ccb0bd66d18483e3981be7fa80e69252 (patch)
tree9dccfdd0654363180083466e4e63fde583abe646
parentThe WEBIRC command should be able to have an empty last parameter. (diff)
Fix setting the OpenSSL groups in relaxed mode. upstream/insp4 upstream/HEAD
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp7
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);
}