Core/Crypto: Support OpenSSL 4.0

Signed-off-by: luis <[email protected]>
This commit is contained in:
Shauren
2026-04-17 08:37:35 -03:00
committed by luis
parent e972774513
commit c4e487b936
+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;