projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0ca8f8
)
Fix style issues in HMAC_size()
author
Matt Caswell
<matt@openssl.org>
Fri, 21 Oct 2016 14:41:04 +0000
(15:41 +0100)
committer
Matt Caswell
<matt@openssl.org>
Fri, 4 Nov 2016 12:09:46 +0000
(12:09 +0000)
Based on review feedback.
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/hmac/hmac.c
patch
|
blob
|
history
diff --git
a/crypto/hmac/hmac.c
b/crypto/hmac/hmac.c
index a2c9dd9845c1e8900caff5d69740a3cd60514ffd..ffca891db1cb90e1247a387d40e617ee89ccce5d 100644
(file)
--- a/
crypto/hmac/hmac.c
+++ b/
crypto/hmac/hmac.c
@@
-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)