提交 d0ee717c 编写于 作者: M Matt Caswell

Fix style issues in HMAC_size()

Based on review feedback.
Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 f0ca8f89
......@@ -119,9 +119,8 @@ int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len)
size_t HMAC_size(const HMAC_CTX *ctx)
{
int size = EVP_MD_size((ctx)->md);
if (size < 0)
return 0;
return size;
return (size < 0) ? 0 : size;
}
HMAC_CTX *HMAC_CTX_new(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册