mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 09:05:24 -04:00
PQI redundant check behave the same as authssl check
This commit is contained in:
parent
f9f7e0df18
commit
1599689eab
2 changed files with 4 additions and 2 deletions
|
@ -1195,7 +1195,8 @@ int pqissl::Authorise_SSL_Connection()
|
|||
}
|
||||
|
||||
RsPgpId pgpId = RsX509Cert::getCertIssuer(*peercert);
|
||||
if( !AuthGPG::getAuthGPG()->isGPGAccepted(pgpId) )
|
||||
if( pgpId != AuthGPG::getAuthGPG()->getGPGOwnId() &&
|
||||
!AuthGPG::getAuthGPG()->isGPGAccepted(pgpId) )
|
||||
{
|
||||
RsFatal() << __PRETTY_FUNCTION__ << " pgpId: " << pgpId
|
||||
<< " is not friend. It is very unlikely to happen at this "
|
||||
|
|
|
@ -798,7 +798,8 @@ int pqissllistener::completeConnection(int fd, IncomingSSLInfo& info)
|
|||
exit(failure);
|
||||
}
|
||||
|
||||
if( !AuthGPG::getAuthGPG()->isGPGAccepted(pgpId) )
|
||||
if( pgpId != AuthGPG::getAuthGPG()->getGPGOwnId() &&
|
||||
!AuthGPG::getAuthGPG()->isGPGAccepted(pgpId) )
|
||||
{
|
||||
RsFatal() << __PRETTY_FUNCTION__ << " pgpId: " << pgpId
|
||||
<< " is not friend. It is very unlikely to happen at this "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue