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
This commit is contained in:
csoler 2009-12-29 15:23:48 +00:00
parent 6a10ca6daa
commit 92dee8ff35

View File

@ -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)