From 4340b1a04a697d1c1e49f7b4a37da3da0c54ef57 Mon Sep 17 00:00:00 2001 From: Phenom Date: Mon, 14 Dec 2020 17:33:08 +0100 Subject: [PATCH] Fix Friend Request Toaster --- libretroshare/src/pqi/authssl.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libretroshare/src/pqi/authssl.cc b/libretroshare/src/pqi/authssl.cc index bc098dc4e..e69b90805 100644 --- a/libretroshare/src/pqi/authssl.cc +++ b/libretroshare/src/pqi/authssl.cc @@ -1368,6 +1368,9 @@ int AuthSSLimpl::VerifyX509Callback(int /*preverify_ok*/, X509_STORE_CTX* ctx) rsEvents->postEvent(std::move(ev)); } + if (auth_diagnostic == RS_SSL_HANDSHAKE_DIAGNOSTIC_ISSUER_UNKNOWN) + RsServer::notify()->AddPopupMessage(RS_POPUP_CONNECT_ATTEMPT, pgpId.toStdString(), sslCn, sslId.toStdString()); /* notify Connect Attempt */ + return verificationFailed; } #ifdef AUTHSSL_DEBUG @@ -1392,6 +1395,8 @@ int AuthSSLimpl::VerifyX509Callback(int /*preverify_ok*/, X509_STORE_CTX* ctx) rsEvents->postEvent(std::move(ev)); } + RsServer::notify()->AddPopupMessage(RS_POPUP_CONNECT_ATTEMPT, pgpId.toStdString(), sslCn, sslId.toStdString()); /* notify Connect Attempt */ + return verificationFailed; }