Fix review comments.

Signed-off-by: allexzander <blackslayer4@gmail.com>
This commit is contained in:
allexzander 2021-05-28 10:19:03 +03:00 committed by allexzander (Rebase PR Action)
parent a80c58f367
commit bf39f053c4
1 changed files with 2 additions and 2 deletions

View File

@ -708,8 +708,8 @@ QByteArray decryptStringAsymmetric(EVP_PKEY *privateKey, const QByteArray& data)
QByteArray out(outlen, '\0');
if (EVP_PKEY_decrypt(ctx, unsignedData(out), &outlen, (unsigned char *)data.constData(), data.size()) <= 0) {
qCCritical(lcCseDecryption()) << "Could not decrypt the data.";
qCCritical(lcCseDecryption()) << handleErrors();
const auto error = handleErrors();
qCCritical(lcCseDecryption()) << "Could not decrypt the data." << error;
return {};
} else {
qCInfo(lcCseDecryption()) << "data decrypted successfully";