added additional check for signature consistency after signing GXS id.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7744 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-12-09 20:38:03 +00:00
parent f23bb941a0
commit 2cbd77ac33

View File

@ -2254,7 +2254,14 @@ RsGenExchange::ServiceCreate_Return p3IdService::service_CreateGroup(RsGxsGrpIte
createStatus = SERVICE_CREATE_FAIL_TRY_LATER;
}
else
{
{
// Additional consistency checks.
if(sign_size == MAX_SIGN_SIZE)
{
std::cerr << "Inconsistent result. Signature uses full buffer. This is probably an error." << std::endl;
return SERVICE_CREATE_FAIL; // abandon attempt!
}
#ifdef DEBUG_IDS
std::cerr << "p3IdService::service_CreateGroup() Signature: ";
std::string strout;