Commit f365138b authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Fix S/MIME sign+encrypt

Summary:
Kleopatra now correctly produces a an encrypted file (.s7m) and a detached
signature (.s7p).

Reviewers: JochenSaalfeld

Reviewed By: JochenSaalfeld

Subscribers: kde-pim, #kde_pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D8368
parent 18028f1f
......@@ -477,7 +477,8 @@ createSignEncryptTasksForFileInfo(const QFileInfo &fi, bool ascii, const std::ve
result.push_back(createSignEncryptTaskForFileInfo(fi, ascii, std::vector<Key>(),
cmsSigners, outputNames[SignEncryptFilesWizard::SignatureCMS],
false));
} else {
}
if (!cmsRecipients.empty()) {
result.push_back(createSignEncryptTaskForFileInfo(fi, ascii, cmsRecipients,
std::vector<Key>(), outputNames[SignEncryptFilesWizard::EncryptedCMS],
false));
......@@ -517,7 +518,8 @@ createArchiveSignEncryptTasksForFiles(const QStringList &files, const std::share
result.push_back(createArchiveSignEncryptTaskForFiles(files, ad, false, ascii,
std::vector<Key>(), cmsSigners, outputNames[SignEncryptFilesWizard::SignatureCMS],
false));
} else {
}
if (!cmsRecipients.empty()) {
result.push_back(createArchiveSignEncryptTaskForFiles(files, ad, false, ascii,
cmsRecipients, std::vector<Key>(), outputNames[SignEncryptFilesWizard::EncryptedCMS],
false));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment