mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
small bug correction
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2015 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
485f27dc11
commit
b96a6d879e
@ -2230,8 +2230,10 @@ int AuthSSL::VerifyX509Callback(int preverify_ok, X509_STORE_CTX *ctx)
|
||||
AuthSSL::getAuthSSL()->ProcessX509(certCopy, certId);
|
||||
mConnMgr->addFriend(certId);
|
||||
}
|
||||
}
|
||||
|
||||
//this current connection won't work, so respond false
|
||||
preverify_ok = false;
|
||||
}
|
||||
//check that the peerid in the context is the same as the cert one
|
||||
SSL *ssl = (SSL*) X509_STORE_CTX_get_ex_data(ctx, SSL_get_ex_data_X509_STORE_CTX_idx());
|
||||
if (SSL_get_ex_data(ssl, AuthSSL::ex_data_ctx_index)) {
|
||||
|
Loading…
Reference in New Issue
Block a user