diff options
| author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-12 21:25:36 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-12 21:25:36 -0400 |
| commit | d6414c9ff74e3f8076a1e94d3c6074366119900e (patch) | |
| tree | b0620f1f1610b51b386964d6758b5787b6cb7d6f /node/Identity.hpp | |
| parent | 5076c75b079fe02c843ca85dc20821e468b2d7b8 (diff) | |
| download | infinitytier-d6414c9ff74e3f8076a1e94d3c6074366119900e.tar.gz infinitytier-d6414c9ff74e3f8076a1e94d3c6074366119900e.zip | |
Windows compiles! (w/Visual Studio 2012) That's about all it does, but it's a start.
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() |
