Ported branch commit 3143: corrected bug responsible for mixing IP lists between peers of same GPG id (connection attempt to other peer responded with connection to oneself). Added additional debug info in p3disc.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3144 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-06-15 21:28:27 +00:00
parent 540e99bc48
commit b941d733cc
2 changed files with 10 additions and 2 deletions

View file

@ -2048,6 +2048,10 @@ int AuthSSL::VerifyX509Callback(int preverify_ok, X509_STORE_CTX *ctx)
//sslcert *cert = NULL;
std::string certId;
getX509id(X509_STORE_CTX_get_current_cert(ctx), certId);
if(certId == mConnMgr->getOwnId())
return false ;
if (!mConnMgr->isFriend(certId)) {
//we've got a new ssl id
preverify_ok = false;