Fix style issues in HMAC_size()
Based on review feedback. Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
f0ca8f89f8
commit
d0ee717c93
1 changed files with 2 additions and 3 deletions
|
@ -119,9 +119,8 @@ int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len)
|
||||||
size_t HMAC_size(const HMAC_CTX *ctx)
|
size_t HMAC_size(const HMAC_CTX *ctx)
|
||||||
{
|
{
|
||||||
int size = EVP_MD_size((ctx)->md);
|
int size = EVP_MD_size((ctx)->md);
|
||||||
if (size < 0)
|
|
||||||
return 0;
|
return (size < 0) ? 0 : size;
|
||||||
return size;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HMAC_CTX *HMAC_CTX_new(void)
|
HMAC_CTX *HMAC_CTX_new(void)
|
||||||
|
|
Loading…
Reference in a new issue