summaryrefslogtreecommitdiffstats
path: root/framework/src/domain/mime/mailcrypto.h
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2018-03-08 11:00:33 +0100
committerMinijackson <minijackson@riseup.net>2018-03-08 16:30:52 +0100
commitbd6e2b880265d01fbb8f4cbeb909ba9dda4f18d2 (patch)
treed70813d9a3bb2d4767094169fa4af1aec73c11f4 /framework/src/domain/mime/mailcrypto.h
parent0e013fa1b7499e41cedd118a3c73a55e708cc790 (diff)
downloadkube-bd6e2b880265d01fbb8f4cbeb909ba9dda4f18d2.tar.gz
kube-bd6e2b880265d01fbb8f4cbeb909ba9dda4f18d2.zip
Switching to unique_ptr everywhere (+ fixing micalg)
Diffstat (limited to 'framework/src/domain/mime/mailcrypto.h')
-rw-r--r--framework/src/domain/mime/mailcrypto.h10
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
27namespace MailCrypto { 32namespace MailCrypto {
28 33
29KMime::Content *processCrypto(KMime::Content *content, const std::vector<GpgME::Key> &signingKeys, 34Expected<GpgME::Error, std::unique_ptr<KMime::Content>>
35processCrypto(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
32std::vector<GpgME::Key> findKeys(const QStringList &filter, bool findPrivate = false, bool remote = false); 38std::vector<GpgME::Key> findKeys(const QStringList &filter, bool findPrivate = false, bool remote = false);