Support VC-WIN32

This commit is contained in:
Zhi Guan
2016-07-04 13:03:03 +02:00
parent f881784b73
commit 09f054b2f2
109 changed files with 16877 additions and 200 deletions

View File

@@ -154,7 +154,7 @@ static int dev_auth(const char *hexauthkey)
}
len = 16; //FIXME: or 8?
bzero(authrand, sizeof(authrand));
memset(authrand, 0, sizeof(authrand));
if ((rv = SKF_GenRandom(hDev, authrand, len)) != SAR_OK) {
ESKFerr(ESKF_F_DEV_AUTH, ESKF_R_SKF_GEN_RANDOM_FAILED);
goto end;