diff options
Diffstat (limited to 'framework/src/domain/mime/mailcrypto.h')
-rw-r--r-- | framework/src/domain/mime/mailcrypto.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/framework/src/domain/mime/mailcrypto.h b/framework/src/domain/mime/mailcrypto.h index 89343fc9..832f68ec 100644 --- a/framework/src/domain/mime/mailcrypto.h +++ b/framework/src/domain/mime/mailcrypto.h | |||
@@ -19,14 +19,20 @@ | |||
19 | 19 | ||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "framework/src/errors.h" | ||
23 | |||
22 | #include <KMime/Message> | 24 | #include <KMime/Message> |
25 | #include <gpgme++/key.h> | ||
26 | |||
23 | #include <QByteArray> | 27 | #include <QByteArray> |
28 | |||
24 | #include <functional> | 29 | #include <functional> |
25 | #include <gpgme++/key.h> | 30 | #include <memory> |
26 | 31 | ||
27 | namespace MailCrypto { | 32 | namespace MailCrypto { |
28 | 33 | ||
29 | KMime::Content *processCrypto(KMime::Content *content, const std::vector<GpgME::Key> &signingKeys, | 34 | Expected<GpgME::Error, std::unique_ptr<KMime::Content>> |
35 | processCrypto(std::unique_ptr<KMime::Content> content, const std::vector<GpgME::Key> &signingKeys, | ||
30 | const std::vector<GpgME::Key> &encryptionKeys, const GpgME::Key &attachedKey); | 36 | const std::vector<GpgME::Key> &encryptionKeys, const GpgME::Key &attachedKey); |
31 | 37 | ||
32 | std::vector<GpgME::Key> findKeys(const QStringList &filter, bool findPrivate = false, bool remote = false); | 38 | std::vector<GpgME::Key> findKeys(const QStringList &filter, bool findPrivate = false, bool remote = false); |