mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-12 17:03:37 +08:00
Support VC-WIN32
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user