mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
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:
parent
9781982811
commit
8b39ca5a2e
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user