From ea3558faf656ca3fe3f54a61e1c7cf77efda7739 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 12 Dec 2017 21:29:06 +0100 Subject: [PATCH] [CSE] Fix strings --- src/libsync/clientsideencryption.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/libsync/clientsideencryption.cpp b/src/libsync/clientsideencryption.cpp index 116855057..38e8f7cbf 100644 --- a/src/libsync/clientsideencryption.cpp +++ b/src/libsync/clientsideencryption.cpp @@ -520,14 +520,13 @@ QByteArray EncryptionHelper::decryptStringAsymmetric(EVP_PKEY *privateKey, const } if (EVP_PKEY_decrypt(ctx, out, &outlen, (unsigned char *)data.constData(), data.size()) <= 0) { - qCInfo(lcCse()) << "Could not decrypt the metadata"; + qCInfo(lcCse()) << "Could not decrypt the data."; exit(1); + } else { + qCInfo(lcCse()) << "data decrypted successfully"; } - qCInfo(lcCse()) << "Metadata decrypted successfully"; const auto ret = std::string((char*) out, outlen); - - // Transform the encrypted data into base64. QByteArray raw((const char*) out, outlen); qCInfo(lcCse()) << raw; return raw;