Core/Crypto: Support OpenSSL 4.0
Signed-off-by: luis <[email protected]>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user