webui: added display of own cert

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8219 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
electron128 2015-05-04 18:10:15 +00:00
parent 744f340746
commit df253e65c6
7 changed files with 74 additions and 6 deletions

View file

@ -100,6 +100,12 @@ void PeersHandler::handleWildcard(Request &req, Response &resp)
req.mPath.pop();
if(str != "")
{
if(str == "self" && !req.mPath.empty() && req.mPath.top() == "certificate")
{
resp.mDataStream << makeKeyValue("cert_string", mRsPeers->GetRetroshareInvite(false));
resp.setOk();
return;
}
// assume the path element is a peer id
// sometimes it is a peer id for location info
// another time it is a pgp id