提交 cf619405 编写于 作者: D Dr. Stephen Henson

Fix warnings.

上级 dafd5b5d
...@@ -115,7 +115,7 @@ int FIPS_selftest_cmac() ...@@ -115,7 +115,7 @@ int FIPS_selftest_cmac()
const EVP_CIPHER *cipher; const EVP_CIPHER *cipher;
CMAC_CTX *ctx = CMAC_CTX_new(); CMAC_CTX *ctx = CMAC_CTX_new();
const CMAC_KAT *t; const CMAC_KAT *t;
int subid, rv = 1; int subid = -1, rv = 1;
for(n=0,t=vector; n<sizeof(vector)/sizeof(vector[0]); n++,t++) for(n=0,t=vector; n<sizeof(vector)/sizeof(vector[0]); n++,t++)
{ {
......
...@@ -120,7 +120,7 @@ int FIPS_selftest_hmac() ...@@ -120,7 +120,7 @@ int FIPS_selftest_hmac()
unsigned char out[EVP_MAX_MD_SIZE]; unsigned char out[EVP_MAX_MD_SIZE];
const EVP_MD *md; const EVP_MD *md;
const HMAC_KAT *t; const HMAC_KAT *t;
int rv = 1, subid; int rv = 1, subid = -1;
HMAC_CTX c; HMAC_CTX c;
HMAC_CTX_init(&c); HMAC_CTX_init(&c);
......
...@@ -274,7 +274,7 @@ static int drbg_reseed(DRBG_CTX *dctx, ...@@ -274,7 +274,7 @@ static int drbg_reseed(DRBG_CTX *dctx,
const unsigned char *adin, size_t adinlen, int hcheck) const unsigned char *adin, size_t adinlen, int hcheck)
{ {
unsigned char *entropy = NULL; unsigned char *entropy = NULL;
size_t entlen; size_t entlen = 0;
int r = 0; int r = 0;
#if 0 #if 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册