improved display/fixed bugs in security item

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7021 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-01-16 19:57:08 +00:00
parent 6fa0d894d0
commit bbdc978d00
3 changed files with 13 additions and 2 deletions

View file

@ -1407,7 +1407,15 @@ bool AuthSSLimpl::FailedCertificate(X509 *x509, const std::string& gpgid,
rs_sprintf_append(ip_address, "%s:%u", rs_inet_ntoa(addr.sin_addr).c_str(), ntohs(addr.sin_port));
uint32_t auth_diagnostic = 0 ;
bool authed = (x509 != NULL && AuthX509WithGPG(x509,auth_diagnostic)) ;
bool authed ;
if(x509 == NULL)
{
auth_diagnostic = RS_SSL_HANDSHAKE_DIAGNOSTIC_CERTIFICATE_NOT_VALID ;
authed = false ;
}
else
authed = AuthX509WithGPG(x509,auth_diagnostic) ;
if(authed)
LocalStoreCert(x509);