From 5618d145a9088a68a24bdae74cd65e54b42e0920 Mon Sep 17 00:00:00 2001 From: joss17 Date: Sat, 16 Jan 2010 12:24:58 +0000 Subject: [PATCH] accept connection from our own key git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2053 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/authssl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/pqi/authssl.cc b/libretroshare/src/pqi/authssl.cc index fff30065a..379eeab94 100644 --- a/libretroshare/src/pqi/authssl.cc +++ b/libretroshare/src/pqi/authssl.cc @@ -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;