summaryrefslogtreecommitdiff
path: root/node/Dictionary.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2014-08-08 11:53:55 -0700
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2014-08-08 11:53:55 -0700
commit502ea66f151b0bef05c5a4183e955c2d358a837a (patch)
treea538415bb663afaed58c24020ddccdb1a50cf981 /node/Dictionary.cpp
parent673aab5ba24acf91961972b71ae2b92f5ffe4b83 (diff)
downloadinfinitytier-502ea66f151b0bef05c5a4183e955c2d358a837a.tar.gz
infinitytier-502ea66f151b0bef05c5a4183e955c2d358a837a.zip
Kill ugly old getSecureRandom() and replace with simple wrapper for Windows CAPI and *nix /dev/urandom, and some build fixes.
Diffstat (limited to 'node/Dictionary.cpp')
-rw-r--r--node/Dictionary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Dictionary.cpp b/node/Dictionary.cpp
index 835cc0c9..e050143b 100644
--- a/node/Dictionary.cpp
+++ b/node/Dictionary.cpp
@@ -110,7 +110,7 @@ bool Dictionary::verify(const Identity &id) const
if (sig == end())
return false;
std::string sigbin(Utils::unhex(sig->second));
- return id.verify(buf.data(),buf.length(),sigbin.data(),sigbin.length());
+ return id.verify(buf.data(),(unsigned int)buf.length(),sigbin.data(),sigbin.length());
} catch ( ... ) {
return false;
}