added name and location to certificate link, to ease display in web forums, html pages etc.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7495 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-08-26 18:52:21 +00:00
parent 9781982811
commit 8b39ca5a2e

View File

@ -372,6 +372,8 @@ bool RetroShareLink::createCertificate(const RsPeerId& ssl_id)
_type = TYPE_CERTIFICATE; _type = TYPE_CERTIFICATE;
_radix = QString::fromUtf8(rsPeers->GetRetroshareInvite(ssl_id,false).c_str()); _radix = QString::fromUtf8(rsPeers->GetRetroshareInvite(ssl_id,false).c_str());
_name = QString::fromUtf8(detail.name.c_str());
_location = QString::fromUtf8(detail.location.c_str());
_radix.replace("\n",""); _radix.replace("\n","");
std::cerr << "Found radix = " << _radix.toStdString() << std::endl; std::cerr << "Found radix = " << _radix.toStdString() << std::endl;
@ -743,6 +745,8 @@ QString RetroShareLink::toString() const
url.setScheme(RSLINK_SCHEME); url.setScheme(RSLINK_SCHEME);
url.setHost(HOST_CERTIFICATE) ; url.setHost(HOST_CERTIFICATE) ;
urlQuery.addQueryItem(CERTIFICATE_RADIX, _radix); urlQuery.addQueryItem(CERTIFICATE_RADIX, _radix);
urlQuery.addQueryItem(CERTIFICATE_NAME, _name);
urlQuery.addQueryItem(CERTIFICATE_LOCATION, _location);
break; break;
} }