From 9bb55626d51f217466bc08104d2f32eb0bf57c02 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 30 Apr 2026 22:29:38 +0100 Subject: Switch ascii comparisons over to our own casemap functions. --- modules/extra/ssl_openssl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/extra/ssl_openssl.cpp') diff --git a/modules/extra/ssl_openssl.cpp b/modules/extra/ssl_openssl.cpp index a26d3b127..0682b5cf5 100644 --- a/modules/extra/ssl_openssl.cpp +++ b/modules/extra/ssl_openssl.cpp @@ -185,11 +185,11 @@ namespace OpenSSL /* Set CRL mode */ unsigned long crlflags = X509_V_FLAG_CRL_CHECK; - if (insp::equalsci(crlmode, "chain")) + if (insp::ascii_equals(crlmode, "chain")) { crlflags |= X509_V_FLAG_CRL_CHECK_ALL; } - else if (!insp::equalsci(crlmode, "leaf")) + else if (!insp::ascii_equals(crlmode, "leaf")) { throw ModuleException(thismod, "Unknown mode '" + crlmode + "'; expected either 'chain' (default) or 'leaf'"); } @@ -986,7 +986,7 @@ class ModuleSSLOpenSSL final for (const auto& [_, tag] : tags) { - if (!insp::equalsci(tag->getString("provider", "openssl", 1), "openssl")) + if (!insp::ascii_equals(tag->getString("provider", "openssl", 1), "openssl")) { ServerInstance->Logs.Debug(MODNAME, "Ignoring non-OpenSSL tag at {}", tag->source.str()); continue; -- cgit v1.3.1-10-gc9f91