mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -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
@ -602,6 +602,11 @@ bool GetTlvString(void *data, uint32_t size, uint32_t *offset,
|
||||
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.
|
||||
|
||||
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)
|
||||
{
|
||||
#ifdef DEBUG_IDS
|
||||
std::cerr << "(EE) Cannot validate signature for unknown key " << signature.keyId << std::endl;
|
||||
#endif
|
||||
signing_error = RS_GIXS_ERROR_KEY_NOT_AVAILABLE ;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user