mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Remove ERR_get_error call
This commit is contained in:
parent
d9c98ca4cd
commit
fb22ccf652
1 changed files with 1 additions and 3 deletions
|
@ -829,9 +829,6 @@ bool DomainServer::verifyUserSignature(const QString& username,
|
|||
int decryptResult =
|
||||
RSA_verify(NID_sha256, reinterpret_cast<const unsigned char*>(usernameWithToken.constData()), usernameWithToken.size(), reinterpret_cast<const unsigned char*>(usernameSignature.constData()), usernameSignature.size(), rsaPublicKey);
|
||||
|
||||
int err = ERR_get_error();
|
||||
qDebug() << "Decrypt result: " << decryptResult << " Error: " << err;
|
||||
|
||||
if (decryptResult == 1) {
|
||||
qDebug() << "Username signature matches for" << username << "- allowing connection.";
|
||||
|
||||
|
@ -840,6 +837,7 @@ bool DomainServer::verifyUserSignature(const QString& username,
|
|||
_connectionTokenHash.remove(username);
|
||||
|
||||
return true;
|
||||
|
||||
} else {
|
||||
qDebug() << "Error decrypting username signature for " << username << "- denying connection.";
|
||||
reasonReturn = "Error decrypting username signature.";
|
||||
|
|
Loading…
Reference in a new issue