summaryrefslogtreecommitdiff
path: root/node/C25519.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2014-01-21 13:07:22 -0800
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2014-01-21 13:07:22 -0800
commit370dd6c4da6acff85947cef365e4df48c00d0863 (patch)
tree96dd0db7a3fcecb6354276ed23c6274c5b7804d7 /node/C25519.hpp
parent06ca24e8e2b663842fee7daabac4a2652da5a834 (diff)
downloadinfinitytier-370dd6c4da6acff85947cef365e4df48c00d0863.tar.gz
infinitytier-370dd6c4da6acff85947cef365e4df48c00d0863.zip
Several things:
(1) Add a bunch of tedious type casts to eliminate unnecessary compiler warnings on Windows X64 builds. (2) Some EthernetTap work to integrate Windows custom IOCTL for multicast group lookup (not done quite yet). (3) Dump some more info in selftest to make sure our Windows path lookup functions are returning sane results.
Diffstat (limited to 'node/C25519.hpp')
-rw-r--r--node/C25519.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/C25519.hpp b/node/C25519.hpp
index 2a594f72..1015ecc3 100644
--- a/node/C25519.hpp
+++ b/node/C25519.hpp
@@ -73,7 +73,7 @@ public:
throw()
{
Pair kp;
- Utils::getSecureRandom(kp.priv.data,kp.priv.size());
+ Utils::getSecureRandom(kp.priv.data,(unsigned int)kp.priv.size());
_calcPubDH(kp);
_calcPubED(kp);
return kp;
@@ -98,7 +98,7 @@ public:
{
Pair kp;
void *const priv = (void *)kp.priv.data;
- Utils::getSecureRandom(priv,kp.priv.size());
+ Utils::getSecureRandom(priv,(unsigned int)kp.priv.size());
_calcPubED(kp); // do Ed25519 key -- bytes 32-63 of pub and priv
do {
++(((uint64_t *)priv)[1]);