Expose pubkey URL of OpenPGP Smartcard

URL is also useful to fetch the pubkey to
a smartcard.
parent 3ddc062f
......@@ -209,7 +209,8 @@ bool OpenPGPCard::operator == (const Card& rhs) const
&& authFpr() == other->authFpr()
&& manufacturer() == other->manufacturer()
&& cardVersion() == other->cardVersion()
&& cardHolder() == other->cardHolder();
&& cardHolder() == other->cardHolder()
&& pubkeyUrl() == other->pubkeyUrl();
}
std::string OpenPGPCard::manufacturer() const
......@@ -228,3 +229,8 @@ std::string OpenPGPCard::cardHolder() const
std::reverse(list.begin(), list.end());
return list.join(QLatin1Char(' ')).toStdString();
}
std::string OpenPGPCard::pubkeyUrl() const
{
return mMetaInfo.value("PUBKEY-URL");
}
......@@ -59,6 +59,7 @@ public:
std::string manufacturer() const;
std::string cardVersion() const;
std::string cardHolder() const;
std::string pubkeyUrl() const;
private:
bool mIsV2 = false;
std::string mCardVersion;
......
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