mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-28 16:17:28 -04:00
Add JSON API to list PGP friends
This commit is contained in:
parent
db3aefcd0b
commit
89819dd945
3 changed files with 31 additions and 4 deletions
|
@ -396,10 +396,6 @@ struct RsPeerStateChangedEvent : RsEvent
|
|||
class RsPeers
|
||||
{
|
||||
public:
|
||||
|
||||
RsPeers() {}
|
||||
virtual ~RsPeers() {}
|
||||
|
||||
/**
|
||||
* @brief Get own SSL peer id
|
||||
* @return own peer id
|
||||
|
@ -416,6 +412,14 @@ public:
|
|||
*/
|
||||
virtual bool getFriendList(std::list<RsPeerId>& sslIds) = 0;
|
||||
|
||||
/**
|
||||
* @brief Get trusted PGP ids list
|
||||
* @jsonapi{development}
|
||||
* @param[out] pgpIds storage for the trusted PGP ids
|
||||
* @return false if error occurred, true otherwise
|
||||
*/
|
||||
virtual bool getPgpFriendList(std::vector<RsPgpId>& pgpIds) = 0;
|
||||
|
||||
/**
|
||||
* @brief Get connected peers list
|
||||
* @jsonapi{development}
|
||||
|
@ -498,6 +502,8 @@ public:
|
|||
*/
|
||||
virtual RsPgpId getGPGId(const RsPeerId& sslId) = 0;
|
||||
virtual bool isKeySupported(const RsPgpId& gpg_ids) = 0;
|
||||
|
||||
RS_DEPRECATED_FOR(getPgpFriendList)
|
||||
virtual bool getGPGAcceptedList(std::list<RsPgpId> &gpg_ids) = 0;
|
||||
virtual bool getGPGSignedList(std::list<RsPgpId> &gpg_ids) = 0;// keys signed by our own PGP key.
|
||||
virtual bool getGPGValidList(std::list<RsPgpId> &gpg_ids) = 0;// all PGP keys without filtering
|
||||
|
@ -847,4 +853,6 @@ public:
|
|||
|
||||
RS_DEPRECATED_FOR(isPgpFriend)
|
||||
virtual bool isGPGAccepted(const RsPgpId &gpg_id_is_friend) = 0;
|
||||
|
||||
virtual ~RsPeers();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue