зеркало из https://github.com/nextcloud/desktop.git
Merge pull request #3352 from nextcloud/bugfix/openssl-crash-when-no-e2ee-mnemonic
Bugfix. Crash when printing OpenSSL decryption errors with no e2ee mnemonic,
This commit is contained in:
Коммит
da586b719c
|
@ -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) {
|
||||
qCInfo(lcCseDecryption()) << "Could not decrypt the data.";
|
||||
ERR_print_errors_fp(stdout); // This line is not printing anything.
|
||||
const auto error = handleErrors();
|
||||
qCCritical(lcCseDecryption()) << "Could not decrypt the data." << error;
|
||||
return {};
|
||||
} else {
|
||||
qCInfo(lcCseDecryption()) << "data decrypted successfully";
|
||||
|
|
Загрузка…
Ссылка в новой задаче