mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 13:24:09 -07:00
Minor Windows build fixes. Builds on VS2012 again.
This commit is contained in:
parent
bacb53fe8f
commit
54f68280bd
5 changed files with 28 additions and 16 deletions
|
@ -103,7 +103,7 @@ public:
|
|||
private:
|
||||
unsigned long _idx;
|
||||
Hashtable *_ht;
|
||||
Hashtable::_Bucket *_b;
|
||||
_Bucket *_b;
|
||||
};
|
||||
friend class Hashtable::Iterator;
|
||||
|
||||
|
|
|
@ -168,14 +168,14 @@ void Utils::getSecureRandom(void *buf,unsigned int bytes)
|
|||
fprintf(stderr,"FATAL ERROR: Utils::getSecureRandom() CryptGenRandom failed!\r\n");
|
||||
exit(1);
|
||||
}
|
||||
s20.init(s20key,256,s20key,8);
|
||||
s20.init(s20key,256,s20key);
|
||||
}
|
||||
|
||||
if (!CryptGenRandom(cryptProvider,(DWORD)bytes,(BYTE *)buf)) {
|
||||
fprintf(stderr,"FATAL ERROR: Utils::getSecureRandom() CryptGenRandom failed!\r\n");
|
||||
exit(1);
|
||||
}
|
||||
s20.encrypt(buf,buf,bytes);
|
||||
s20.encrypt12(buf,buf,bytes);
|
||||
|
||||
#else // not __WINDOWS__
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue