From 92dee8ff35658b6f1cd301ead824ee043234ef17 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 29 Dec 2009 15:23:48 +0000 Subject: [PATCH] suspending the auth code in p3distrib to allow forum messages to display. I need to sort out this mess. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1941 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/services/p3distrib.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/libretroshare/src/services/p3distrib.cc b/libretroshare/src/services/p3distrib.cc index a2015afc2..f07fc608f 100644 --- a/libretroshare/src/services/p3distrib.cc +++ b/libretroshare/src/services/p3distrib.cc @@ -2366,9 +2366,8 @@ bool p3GroupDistrib::locked_validateDistribSignedMsg( #endif #ifdef DISTRIB_DEBUG - std::cerr << "p3GroupDistrib::locked_validateDistribSignedMsg() KeyId: "; - std::cerr << newMsg->publishSignature.keyId; - std::cerr << std::endl; + std::cerr << "p3GroupDistrib::locked_validateDistribSignedMsg() publish KeyId: " << newMsg->publishSignature.keyId << std::endl; + std::cerr << "p3GroupDistrib::locked_validateDistribSignedMsg() personal KeyId: " << newMsg->personalSignature.keyId << std::endl; #endif /********************* check signature *******************/ @@ -2463,6 +2462,11 @@ bool p3GroupDistrib::locked_validateDistribSignedMsg( unsigned char *personalsigbuf = (unsigned char *) newMsg->personalSignature.signData.bin_data; +#ifdef TEMPORARILY SUSPENDED + // csoler: + // I'm suspending this because it prevents messages to be displayed. I guess there is a signature + // problem, such as the msg is signed by the SSL key and authed by the PGP one, or something like this. + // if (!mAuthMgr->VerifySignBin( newMsg->personalSignature.keyId, newMsg->packet.bin_data, newMsg->packet.bin_len, @@ -2474,6 +2478,7 @@ bool p3GroupDistrib::locked_validateDistribSignedMsg( #endif signOk = 0; } +#endif } else if ((info.grpFlags & RS_DISTRIB_AUTHEN_MASK) & RS_DISTRIB_AUTHEN_REQ)