JSON API to check if PGP id is friend

This commit is contained in:
Gioacchino Mazzurco 2018-11-01 23:26:42 +01:00
parent 3c6dd1af1c
commit eca4f8adf7
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
3 changed files with 20 additions and 6 deletions

View file

@ -66,7 +66,11 @@ public:
virtual bool isOnline(const RsPeerId &id);
virtual bool isFriend(const RsPeerId &id);
virtual bool isPgpFriend(const RsPgpId& pgpId);
RS_DEPRECATED_FOR(isPgpFriend)
virtual bool isGPGAccepted(const RsPgpId &gpg_id_is_friend);
virtual std::string getGPGName(const RsPgpId &gpg_id);
virtual std::string getPeerName(const RsPeerId& ssl_or_gpg_id);
virtual bool getPeerDetails(const RsPeerId& ssl_or_gpg_id, RsPeerDetails &d);