forked from wolfSSL/wolfssl
wolfcrypt/test/test.c: fix skipped initialization warned by LLVM11 scan-build.
This commit is contained in:
@@ -15648,12 +15648,14 @@ static int dsa_test(void)
|
|||||||
XMEMCPY(tmp, dsa_key_der_2048, sizeof_dsa_key_der_2048);
|
XMEMCPY(tmp, dsa_key_der_2048, sizeof_dsa_key_der_2048);
|
||||||
bytes = sizeof_dsa_key_der_2048;
|
bytes = sizeof_dsa_key_der_2048;
|
||||||
#else
|
#else
|
||||||
|
{
|
||||||
XFILE file = XFOPEN(dsaKey, "rb");
|
XFILE file = XFOPEN(dsaKey, "rb");
|
||||||
if (!file)
|
if (!file)
|
||||||
ERROR_OUT(-8200, out);
|
ERROR_OUT(-8200, out);
|
||||||
|
|
||||||
bytes = (word32) XFREAD(tmp, 1, DSA_TEST_TMP_SIZE, file);
|
bytes = (word32) XFREAD(tmp, 1, DSA_TEST_TMP_SIZE, file);
|
||||||
XFCLOSE(file);
|
XFCLOSE(file);
|
||||||
|
}
|
||||||
#endif /* USE_CERT_BUFFERS */
|
#endif /* USE_CERT_BUFFERS */
|
||||||
|
|
||||||
ret = wc_InitSha_ex(&sha, HEAP_HINT, devId);
|
ret = wc_InitSha_ex(&sha, HEAP_HINT, devId);
|
||||||
|
Reference in New Issue
Block a user