Error checking.
This commit is contained in:
parent
80790d89ec
commit
35d7cc8166
@ -250,12 +250,16 @@ int hmac_test(BIO *err, const EVP_MD *md, BIO *out, BIO *in)
|
|||||||
if (Msg)
|
if (Msg)
|
||||||
goto parse_error;
|
goto parse_error;
|
||||||
Msg = string_to_hex(value, &Msglen);
|
Msg = string_to_hex(value, &Msglen);
|
||||||
|
if (!Msg)
|
||||||
|
goto parse_error;
|
||||||
}
|
}
|
||||||
else if (!strcmp(keyword, "Key"))
|
else if (!strcmp(keyword, "Key"))
|
||||||
{
|
{
|
||||||
if (Key)
|
if (Key)
|
||||||
goto parse_error;
|
goto parse_error;
|
||||||
Key = string_to_hex(value, &Keylen);
|
Key = string_to_hex(value, &Keylen);
|
||||||
|
if (!Key)
|
||||||
|
goto parse_error;
|
||||||
}
|
}
|
||||||
else if (!strcmp(keyword, "Mac"))
|
else if (!strcmp(keyword, "Mac"))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user