mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
make peer details work for GPG key in the network view gui
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2010 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
77b3c0afd0
commit
41600dc3cf
13 changed files with 472 additions and 486 deletions
|
@ -314,7 +314,7 @@ bool p3Peers::getPeerDetails(std::string id, RsPeerDetails &d)
|
|||
d.email = authDetail.email;
|
||||
d.location = authDetail.location;
|
||||
d.org = authDetail.org;
|
||||
d.signers = authDetail.signers;
|
||||
d.gpgSigners = authDetail.signers;
|
||||
|
||||
d.issuer = authDetail.issuer;
|
||||
|
||||
|
@ -552,13 +552,12 @@ bool p3Peers::getPGPAllList(std::list<std::string> &ids)
|
|||
bool p3Peers::getPGPDetails(std::string id, RsPeerDetails &d)
|
||||
{
|
||||
#ifdef P3PEERS_DEBUG
|
||||
std::cerr << "p3Peers::getPgpDetails()";
|
||||
std::cerr << "p3Peers::getPgpDetails() called for id : " << id;
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
|
||||
/* get from mAuthMgr */
|
||||
AuthGPG::getAuthGPG()->getPGPDetails(id, d);
|
||||
return true;
|
||||
return AuthGPG::getAuthGPG()->getPGPDetails(id, d);
|
||||
}
|
||||
|
||||
std::string p3Peers::getPGPOwnId()
|
||||
|
@ -572,6 +571,16 @@ std::string p3Peers::getPGPOwnId()
|
|||
return AuthGPG::getAuthGPG()->PGPOwnId();
|
||||
}
|
||||
|
||||
std::string p3Peers::getPGPId(std::string ssl_id)
|
||||
{
|
||||
#ifdef P3PEERS_DEBUG
|
||||
std::cerr << "p3Peers::getPGPId()";
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
|
||||
/* get from mAuthMgr */
|
||||
return AuthSSL::getAuthSSL()->getGPGId(ssl_id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -970,8 +979,8 @@ std::ostream &operator<<(std::ostream &out, const RsPeerDetails &detail)
|
|||
out << std::endl;
|
||||
|
||||
std::list<std::string>::const_iterator it;
|
||||
for(it = detail.signers.begin();
|
||||
it != detail.signers.end(); it++)
|
||||
for(it = detail.gpgSigners.begin();
|
||||
it != detail.gpgSigners.end(); it++)
|
||||
{
|
||||
out << "\t" << *it;
|
||||
out << std::endl;
|
||||
|
|
|
@ -55,6 +55,7 @@ virtual bool getPeerDetails(std::string id, RsPeerDetails &d);
|
|||
|
||||
/* Using PGP Ids */
|
||||
virtual std::string getPGPOwnId();
|
||||
virtual std::string getPGPId(std::string ssl_id);
|
||||
virtual bool getPGPFriendList(std::list<std::string> &ids);
|
||||
virtual bool getPGPAllList(std::list<std::string> &ids);
|
||||
virtual bool getPGPDetails(std::string id, RsPeerDetails &d);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue