removed debug info about missing keys; added debug info about deserialization checking of string

This commit is contained in:
csoler 2015-08-05 20:51:34 +02:00
parent 311358bcda
commit 168eb45539
2 changed files with 7 additions and 0 deletions

View File

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

View File

@ -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;
}