Commit 4d40dbc8 authored by Sandro Knauß's avatar Sandro Knauß
Browse files

MessageCore/AutocryptRecipient: Add gpgKeydata and gossipKeydata methods.

parent 1c2b39b1
......@@ -211,12 +211,24 @@ GpgME::Key MessageCore::AutocryptRecipient::gpgKey() const
return ::gpgKey(d->keydata);
}
QByteArray MessageCore::AutocryptRecipient::gpgKeydata() const
{
const Q_D(AutocryptRecipient);
return KCodecs::base64Decode(d->keydata);
}
GpgME::Key AutocryptRecipient::gossipKey() const
{
const Q_D(AutocryptRecipient);
return ::gpgKey(d->gossip_key);
}
QByteArray MessageCore::AutocryptRecipient::gossipKeydata() const
{
const Q_D(AutocryptRecipient);
return KCodecs::base64Decode(d->gossip_key);
}
QByteArray AutocryptRecipient::addr() const
{
const Q_D(AutocryptRecipient);
......
......@@ -49,7 +49,10 @@ public:
bool prefer_encrypt() const;
GpgME::Key gpgKey() const;
QByteArray gpgKeydata() const;
GpgME::Key gossipKey() const;
QByteArray gossipKeydata() const;
private:
std::unique_ptr<AutocryptRecipientPrivate> d_ptr;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment