mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 14:12:43 -04:00
removed debug info about missing keys; added debug info about deserialization checking of string
This commit is contained in:
parent
311358bcda
commit
168eb45539
2 changed files with 7 additions and 0 deletions
|
@ -602,6 +602,11 @@ bool GetTlvString(void *data, uint32_t size, uint32_t *offset,
|
||||||
in = std::string(strdata, strsize);
|
in = std::string(strdata, strsize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef TLV_BASE_DEBUG
|
||||||
|
if(type == TLV_TYPE_STR_MSG)
|
||||||
|
std::cerr << "Checking string \"" << in << "\"" << std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Check for string content. We want to avoid possible lol bombs as soon as possible.
|
// Check for string content. We want to avoid possible lol bombs as soon as possible.
|
||||||
|
|
||||||
static const int number_of_suspiscious_strings = 4 ;
|
static const int number_of_suspiscious_strings = 4 ;
|
||||||
|
|
|
@ -718,7 +718,9 @@ bool p3IdService::validateData(const uint8_t *data,uint32_t data_size,const RsTl
|
||||||
|
|
||||||
if(signature_key.keyData.bin_data == NULL)
|
if(signature_key.keyData.bin_data == NULL)
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_IDS
|
||||||
std::cerr << "(EE) Cannot validate signature for unknown key " << signature.keyId << std::endl;
|
std::cerr << "(EE) Cannot validate signature for unknown key " << signature.keyId << std::endl;
|
||||||
|
#endif
|
||||||
signing_error = RS_GIXS_ERROR_KEY_NOT_AVAILABLE ;
|
signing_error = RS_GIXS_ERROR_KEY_NOT_AVAILABLE ;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue