mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 10:19:42 +02:00
Remove ERR_get_error call
This commit is contained in:
parent
ab2b54a6b2
commit
45e3eafce3
1 changed files with 1 additions and 3 deletions
|
@ -829,9 +829,6 @@ bool DomainServer::verifyUserSignature(const QString& username,
|
||||||
int decryptResult =
|
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);
|
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) {
|
if (decryptResult == 1) {
|
||||||
qDebug() << "Username signature matches for" << username << "- allowing connection.";
|
qDebug() << "Username signature matches for" << username << "- allowing connection.";
|
||||||
|
|
||||||
|
@ -840,6 +837,7 @@ bool DomainServer::verifyUserSignature(const QString& username,
|
||||||
_connectionTokenHash.remove(username);
|
_connectionTokenHash.remove(username);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
qDebug() << "Error decrypting username signature for " << username << "- denying connection.";
|
qDebug() << "Error decrypting username signature for " << username << "- denying connection.";
|
||||||
reasonReturn = "Error decrypting username signature.";
|
reasonReturn = "Error decrypting username signature.";
|
||||||
|
|
Loading…
Reference in a new issue