Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F35313372
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
View Options
diff --git a/src/core/cryptohelper.h b/src/core/cryptohelper.h
index 99b9369..922ebe1 100644
--- a/src/core/cryptohelper.h
+++ b/src/core/cryptohelper.h
@@ -1,56 +1,56 @@
// SPDX-FileCopyrightText: 2001,2002 the KPGP authors
// SPDX-FileCopyrightText: 2015 Sandro Knauß <knauss@kolabsys.com>
// SPDX-FileCopyrightText: 2017 Daniel Vrátil <dvratil@kde.org>
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include "mimetreeparser_core_export.h"
#include <KMime/Message>
#include <QByteArray>
#include <QList>
#include <gpgme++/global.h>
namespace MimeTreeParser
{
enum PGPBlockType {
UnknownBlock = -1, // BEGIN PGP ???
NoPgpBlock = 0,
PgpMessageBlock = 1, // BEGIN PGP MESSAGE
MultiPgpMessageBlock = 2, // BEGIN PGP MESSAGE, PART X[/Y]
SignatureBlock = 3, // BEGIN PGP SIGNATURE
ClearsignedBlock = 4, // BEGIN PGP SIGNED MESSAGE
PublicKeyBlock = 5, // BEGIN PGP PUBLIC KEY BLOCK
PrivateKeyBlock = 6, // BEGIN PGP PRIVATE KEY BLOCK (PGP 2.x: ...SECRET...)
};
class MIMETREEPARSER_CORE_EXPORT Block
{
public:
Block();
Block(const QByteArray &m);
Block(const QByteArray &m, PGPBlockType t);
[[nodiscard]] QByteArray text() const;
[[nodiscard]] PGPBlockType type() const;
[[nodiscard]] PGPBlockType determineType() const;
QByteArray msg;
PGPBlockType mType = UnknownBlock;
};
/** Parses the given message and splits it into OpenPGP blocks and
Non-OpenPGP blocks.
*/
[[nodiscard]] MIMETREEPARSER_CORE_EXPORT QList<Block> prepareMessageForDecryption(const QByteArray &msg);
namespace CryptoUtils
{
[[nodiscard]] MIMETREEPARSER_CORE_EXPORT KMime::Message::Ptr decryptMessage(const KMime::Message::Ptr &decrypt, bool &wasEncrypted, GpgME::Protocol &protoName);
}
} // namespace MimeTreeParser
-Q_DECLARE_TYPEINFO(MimeTreeParser::Block, Q_MOVABLE_TYPE);
+Q_DECLARE_TYPEINFO(MimeTreeParser::Block, Q_RELOCATABLE_TYPE);
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Feb 5, 9:25 PM (21 h, 41 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
93/7e/c3dbf8ea349686c70eb1a45bec8d
Attached To
rMTP MIME Tree Parser
Event Timeline
Log In to Comment