Self test almost builds, now need skeleton EthernetTap implementation for Windows.
This commit is contained in:
parent
1f9a7e26ba
commit
150a53eb17
13 changed files with 51 additions and 61 deletions
10
selftest.cpp
10
selftest.cpp
|
@ -51,6 +51,10 @@
|
|||
|
||||
#include <openssl/rand.h>
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
#include <tchar.h>
|
||||
#endif
|
||||
|
||||
using namespace ZeroTier;
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
@ -394,12 +398,16 @@ static int testRateLimiter()
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
int _tmain(int argc, _TCHAR* argv[])
|
||||
#else
|
||||
int main(int argc,char **argv)
|
||||
#endif
|
||||
{
|
||||
int r = 0;
|
||||
|
||||
_initLibCrypto();
|
||||
srand(time(0));
|
||||
srand((unsigned int)time(0));
|
||||
|
||||
r |= testCrypto();
|
||||
r |= testPacket();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue