mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
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:
parent
744f340746
commit
df253e65c6
7 changed files with 74 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue