diff options
Diffstat (limited to 'node/Identity.hpp')
-rw-r--r-- | node/Identity.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Identity.hpp b/node/Identity.hpp index a970d7f7..22e60fde 100644 --- a/node/Identity.hpp +++ b/node/Identity.hpp @@ -173,7 +173,7 @@ public: /** * @return True if this identity has its private portion */ - inline bool hasPrivate() const throw() { return (_keyPair); } + inline bool hasPrivate() const throw() { return (_keyPair != (EllipticCurveKeyPair *)0); } /** * Shortcut method to perform key agreement with another identity @@ -356,7 +356,7 @@ public: /** * @return True if this identity contains something */ - inline operator bool() const throw() { return (_publicKey.size()); } + inline operator bool() const throw() { return (_publicKey.size() != 0); } inline bool operator==(const Identity &id) const throw() |