mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-26 23:36:59 -05:00
Added extra function to retrieve Peer's GPG IDs.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-dhtmods@4750 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
8e5e90dcef
commit
58d8606d00
@ -255,6 +255,22 @@ bool p3PeerMgrIMPL::getPeerName(const std::string &ssl_id, std::string &name)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool p3PeerMgrIMPL::getGpgId(const std::string &ssl_id, std::string &gpgId)
|
||||||
|
{
|
||||||
|
RsStackMutex stack(mPeerMtx); /****** STACK LOCK MUTEX *******/
|
||||||
|
|
||||||
|
/* check for existing */
|
||||||
|
std::map<std::string, peerState>::iterator it;
|
||||||
|
it = mFriendList.find(ssl_id);
|
||||||
|
if (it == mFriendList.end())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
gpgId = it->second.gpg_id;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool p3PeerMgrIMPL::getFriendNetStatus(const std::string &id, peerState &state)
|
bool p3PeerMgrIMPL::getFriendNetStatus(const std::string &id, peerState &state)
|
||||||
|
@ -182,6 +182,7 @@ virtual bool getFriendNetStatus(const std::string &id, peerState &state) = 0;
|
|||||||
virtual bool getOthersNetStatus(const std::string &id, peerState &state) = 0;
|
virtual bool getOthersNetStatus(const std::string &id, peerState &state) = 0;
|
||||||
|
|
||||||
virtual bool getPeerName(const std::string &ssl_id, std::string &name) = 0;
|
virtual bool getPeerName(const std::string &ssl_id, std::string &name) = 0;
|
||||||
|
virtual bool getGpgId(const std::string &sslId, std::string &gpgId) = 0;
|
||||||
|
|
||||||
|
|
||||||
/************* DEPRECIATED FUNCTIONS (TO REMOVE) ********/
|
/************* DEPRECIATED FUNCTIONS (TO REMOVE) ********/
|
||||||
@ -266,6 +267,7 @@ virtual bool getFriendNetStatus(const std::string &id, peerState &state);
|
|||||||
virtual bool getOthersNetStatus(const std::string &id, peerState &state);
|
virtual bool getOthersNetStatus(const std::string &id, peerState &state);
|
||||||
|
|
||||||
virtual bool getPeerName(const std::string &ssl_id, std::string &name);
|
virtual bool getPeerName(const std::string &ssl_id, std::string &name);
|
||||||
|
virtual bool getGpgId(const std::string &sslId, std::string &gpgId);
|
||||||
|
|
||||||
|
|
||||||
/************* DEPRECIATED FUNCTIONS (TO REMOVE) ********/
|
/************* DEPRECIATED FUNCTIONS (TO REMOVE) ********/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user