summaryrefslogtreecommitdiffstats
path: root/framework/src
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src')
-rw-r--r--framework/src/domain/mime/crypto.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/src/domain/mime/crypto.cpp b/framework/src/domain/mime/crypto.cpp
index 8450107a..b85820d4 100644
--- a/framework/src/domain/mime/crypto.cpp
+++ b/framework/src/domain/mime/crypto.cpp
@@ -45,6 +45,7 @@ QDebug operator<< (QDebug d, const Error &error)
45 return d; 45 return d;
46} 46}
47 47
48namespace Crypto {
48struct Data { 49struct Data {
49 Data(const QByteArray &buffer) 50 Data(const QByteArray &buffer)
50 { 51 {
@@ -61,6 +62,7 @@ struct Data {
61 } 62 }
62 gpgme_data_t data; 63 gpgme_data_t data;
63}; 64};
65}
64 66
65static gpgme_error_t checkEngine(CryptoProtocol protocol) 67static gpgme_error_t checkEngine(CryptoProtocol protocol)
66{ 68{
@@ -103,6 +105,7 @@ static std::pair<gpgme_error_t, gpgme_ctx_t> createForProtocol(CryptoProtocol pr
103} 105}
104 106
105 107
108namespace Crypto {
106struct Context { 109struct Context {
107 Context(CryptoProtocol protocol = OpenPGP) 110 Context(CryptoProtocol protocol = OpenPGP)
108 { 111 {
@@ -123,6 +126,7 @@ struct Context {
123 Error error; 126 Error error;
124 gpgme_ctx_t context; 127 gpgme_ctx_t context;
125}; 128};
129}
126 130
127 131
128static QByteArray toBA(gpgme_data_t out) 132static QByteArray toBA(gpgme_data_t out)