diff --git a/libretroshare/src/serialiser/rstlvbase.cc b/libretroshare/src/serialiser/rstlvbase.cc index 21b99e96a..5bd704fe4 100644 --- a/libretroshare/src/serialiser/rstlvbase.cc +++ b/libretroshare/src/serialiser/rstlvbase.cc @@ -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 ; diff --git a/libretroshare/src/services/p3idservice.cc b/libretroshare/src/services/p3idservice.cc index 6e8105770..8eaa08928 100644 --- a/libretroshare/src/services/p3idservice.cc +++ b/libretroshare/src/services/p3idservice.cc @@ -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; }