mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-23 22:49:37 -05:00
accept connection from our own key
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2053 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
561104297e
commit
5618d145a9
@ -2167,7 +2167,7 @@ int AuthSSL::VerifyX509Callback(int preverify_ok, X509_STORE_CTX *ctx)
|
||||
(err == X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE))
|
||||
{
|
||||
std::string pgpid = getX509CNString(X509_STORE_CTX_get_current_cert(ctx)->cert_info->issuer);
|
||||
if (!AuthGPG::getAuthGPG()->isGPGAccepted(pgpid))
|
||||
if (!AuthGPG::getAuthGPG()->isGPGAccepted(pgpid) && pgpid != AuthGPG::getAuthGPG()->getGPGOwnId())
|
||||
{
|
||||
fprintf(stderr, "AuthSSL::VerifyX509Callback() pgp key not signed by ourself.\n");
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user