Core/Crypto: Support OpenSSL 4.0

This commit is contained in:
Shauren
2026-04-17 11:58:34 +02:00
parent e9cb7bed43
commit 6f8a815883
+3 -3
View File
@@ -117,7 +117,7 @@ bool Battlenet::SslContext::Initialize()
_usesDevWildcardCertificate = [&]
{
X509_NAME* nm = X509_get_subject_name(cert);
X509_NAME const* nm = X509_get_subject_name(cert);
int32 lastpos = -1;
while (true)
{
@@ -125,11 +125,11 @@ bool Battlenet::SslContext::Initialize()
if (lastpos == -1)
break;
X509_NAME_ENTRY* e = X509_NAME_get_entry(nm, lastpos);
X509_NAME_ENTRY const* e = X509_NAME_get_entry(nm, lastpos);
if (!e)
continue;
ASN1_STRING* text = X509_NAME_ENTRY_get_data(e);
ASN1_STRING const* text = X509_NAME_ENTRY_get_data(e);
if (!text)
continue;