allow blocked output of identitySecret

pull/412/head
Ryan Tharp 5 years ago
parent 4348f5b13d
commit 823f276280

@ -91,6 +91,7 @@ namespace llarp
friend std::ostream &
operator<<(std::ostream &out, const SecretKey &)
{
//return out << k.ToHex();
// make sure we never print out secret keys
return out << "[secretkey]";
}
@ -128,6 +129,14 @@ namespace llarp
{
IdentitySecret() : AlignedBuffer< 32 >(){};
friend std::ostream &
operator<<(std::ostream &out, const IdentitySecret &)
{
//return out << k.ToHex();
// make sure we never print out secret keys
return out << "[secretkey]";
}
/// no copy constructor
explicit IdentitySecret(const IdentitySecret &) = delete;
// no byte data constructor

Loading…
Cancel
Save