summaryrefslogtreecommitdiffstats
path: root/framework/src/domain/mime/mailcrypto.h
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2018-03-07 17:41:23 +0100
committerMinijackson <minijackson@riseup.net>2018-03-08 16:30:52 +0100
commit1112e1530587d71b1bc21f9e19b4ed95fbe30fa2 (patch)
treefbaa8735509fafff103bf73a5c73fe6b980e0c44 /framework/src/domain/mime/mailcrypto.h
parent7ab399ce3b4b33439fe2607cf38e3f27a7d6008e (diff)
downloadkube-1112e1530587d71b1bc21f9e19b4ed95fbe30fa2.tar.gz
kube-1112e1530587d71b1bc21f9e19b4ed95fbe30fa2.zip
Remove protocol differentiation since we only use OpenPGP
Diffstat (limited to 'framework/src/domain/mime/mailcrypto.h')
-rw-r--r--framework/src/domain/mime/mailcrypto.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/framework/src/domain/mime/mailcrypto.h b/framework/src/domain/mime/mailcrypto.h
index 724d6427..89343fc9 100644
--- a/framework/src/domain/mime/mailcrypto.h
+++ b/framework/src/domain/mime/mailcrypto.h
@@ -19,18 +19,18 @@
19 19
20#pragma once 20#pragma once
21 21
22#include <QByteArray>
23#include <KMime/Message> 22#include <KMime/Message>
24#include <gpgme++/key.h> 23#include <QByteArray>
25#include <functional> 24#include <functional>
25#include <gpgme++/key.h>
26
27namespace MailCrypto {
28
29KMime::Content *processCrypto(KMime::Content *content, const std::vector<GpgME::Key> &signingKeys,
30 const std::vector<GpgME::Key> &encryptionKeys, const GpgME::Key &attachedKey);
31
32std::vector<GpgME::Key> findKeys(const QStringList &filter, bool findPrivate = false, bool remote = false);
33
34void importKeys(const std::vector<GpgME::Key> &keys);
26 35
27namespace MailCrypto 36}; // namespace MailCrypto
28{
29 enum Protocol {
30 OPENPGP,
31 SMIME
32 };
33 KMime::Content *processCrypto(KMime::Content *content, const std::vector<GpgME::Key> &signingKeys, const std::vector<GpgME::Key> &encryptionKeys, const GpgME::Key &attachedKey, MailCrypto::Protocol protocol);
34 std::vector<GpgME::Key> findKeys(const QStringList &filter, bool findPrivate = false, bool remote = false, Protocol protocol = OPENPGP);
35 void importKeys(const std::vector<GpgME::Key> &keys);
36};