mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
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:
parent
f23bb941a0
commit
2cbd77ac33
1 changed files with 8 additions and 1 deletions
|
@ -2255,6 +2255,13 @@ RsGenExchange::ServiceCreate_Return p3IdService::service_CreateGroup(RsGxsGrpIte
|
||||||
}
|
}
|
||||||
else
|
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
|
#ifdef DEBUG_IDS
|
||||||
std::cerr << "p3IdService::service_CreateGroup() Signature: ";
|
std::cerr << "p3IdService::service_CreateGroup() Signature: ";
|
||||||
std::string strout;
|
std::string strout;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue