mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
RetroShareLink:
- Fixed create unknown ssl certificate - Fixed process of person link git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7925 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ccee594a28
commit
961641c186
@ -340,6 +340,7 @@ bool RetroShareLink::createPublicMsgInvite(time_t time_stamp,const QString& issu
|
||||
|
||||
return valid() ;
|
||||
}
|
||||
|
||||
bool RetroShareLink::createPerson(const RsPgpId& id)
|
||||
{
|
||||
clear();
|
||||
@ -394,7 +395,7 @@ bool RetroShareLink::createUnknwonSslCertificate(const RsPeerId& sslId, const Rs
|
||||
}
|
||||
|
||||
// then gpg id
|
||||
if (createCertificate(sslId)) {
|
||||
if (createPerson(gpgId)) {
|
||||
if (!_SSLid.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
@ -866,6 +867,7 @@ bool RetroShareLink::checkSSLId(const QString& ssl_id)
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
bool RetroShareLink::checkPGPId(const QString& pgp_id)
|
||||
{
|
||||
if(pgp_id.length() != 16)
|
||||
@ -883,6 +885,7 @@ bool RetroShareLink::checkPGPId(const QString& pgp_id)
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
bool RetroShareLink::checkRadix64(const QString& s)
|
||||
{
|
||||
QByteArray qb(s.toLatin1()) ;
|
||||
@ -1172,7 +1175,7 @@ static void processList(const QStringList &list, const QString &textSingular, co
|
||||
needNotifySuccess = true;
|
||||
|
||||
RsPeerDetails detail;
|
||||
if (rsPeers->getPeerDetails(RsPeerId(link.hash().toStdString()), detail))
|
||||
if (rsPeers->getGPGDetails(RsPgpId(link.hash().toStdString()), detail))
|
||||
{
|
||||
if (RsPgpId(detail.gpg_id) == rsPeers->getGPGOwnId()) {
|
||||
// it's me, do nothing
|
||||
|
Loading…
Reference in New Issue
Block a user