aboutsummaryrefslogtreecommitdiffstats
path: root/modules/extra/ssl_openssl.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-07-22 19:40:42 +0100
committerGravatar Sadie Powell2026-07-22 19:40:42 +0100
commit80c142af5ef9c9f9ae671f7b9a69e37fcfc5be06 (patch)
tree8be65c51d06e12f2cc1749bd14e2c655ade06c5e /modules/extra/ssl_openssl.cpp
parentFix remote overwrite of extended swhois with same tag (diff)
parentAdd a separate config option for setting a WebSocket STS port. (diff)
Merge branch 'insp4' into master.
Diffstat (limited to 'modules/extra/ssl_openssl.cpp')
-rw-r--r--modules/extra/ssl_openssl.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/extra/ssl_openssl.cpp b/modules/extra/ssl_openssl.cpp
index 7c8a5707a..c3250db10 100644
--- a/modules/extra/ssl_openssl.cpp
+++ b/modules/extra/ssl_openssl.cpp
@@ -124,13 +124,16 @@ namespace OpenSSL
StringSplitter 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);
}