fixed compilation in GxsSecurity with debug flags

This commit is contained in:
csoler 2017-01-01 21:28:14 +01:00
parent e883a32711
commit a962330f25

View File

@ -386,7 +386,7 @@ bool GxsSecurity::validateNxsMsg(const RsNxsMsg& msg, const RsTlvKeySignature& s
std::cerr << std::endl; std::cerr << std::endl;
std::cerr << "RsNxsMsg :"; std::cerr << "RsNxsMsg :";
std::cerr << std::endl; std::cerr << std::endl;
msg.print(std::cerr, 10); const_cast<RsNxsMsg*>(&msg)->print(std::cerr, 10);
std::cerr << std::endl; std::cerr << std::endl;
#endif #endif
@ -788,8 +788,7 @@ bool GxsSecurity::decrypt(uint8_t *& out, uint32_t & outlen, const uint8_t *in,
else else
{ {
#ifdef GXS_SECURITY_DEBUG #ifdef GXS_SECURITY_DEBUG
std::cerr << "GxsSecurity(): Could not generate publish key " << grpId std::cerr << "GxsSecurity(): Could not generate RSA private key " << key.keyId << std::endl;
<< std::endl;
#endif #endif
return false; return false;
} }
@ -1019,7 +1018,7 @@ bool GxsSecurity::validateNxsGrp(const RsNxsGrp& grp, const RsTlvKeySignature& s
std::cerr << std::endl; std::cerr << std::endl;
std::cerr << "RsNxsGrp :"; std::cerr << "RsNxsGrp :";
std::cerr << std::endl; std::cerr << std::endl;
grp.print(std::cerr, 10); const_cast<RsNxsGrp*>(&grp)->print(std::cerr, 10);
std::cerr << std::endl; std::cerr << std::endl;
#endif #endif