Silence openssl_free_key() deprecation warnings on 8.0

we don't give a shit and these calls are currently needed for 7.4.
This commit is contained in:
Dylan K. Taylor 2021-07-23 16:30:22 +01:00
parent 0eb4231b51
commit f89e10e684
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ class ProcessLoginTask extends AsyncTask{
throw new VerifyLoginException($e->getMessage(), 0, $e);
}
openssl_free_key($signingKeyOpenSSL);
@openssl_free_key($signingKeyOpenSSL);
if($headers->x5u === self::MOJANG_ROOT_PUBLIC_KEY){
$this->authenticated = true; //we're signed into xbox live

View File

@ -80,8 +80,8 @@ class PrepareEncryptionTask extends AsyncTask{
$this->aesKey = EncryptionUtils::generateKey($sharedSecret, $salt);
$this->handshakeJwt = EncryptionUtils::generateServerHandshakeJwt($serverPriv, $salt);
openssl_free_key($serverPriv);
openssl_free_key($clientPub);
@openssl_free_key($serverPriv);
@openssl_free_key($clientPub);
}
public function onCompletion() : void{