aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-12-10 18:49:29 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-12-10 18:49:29 +0100
commitc67ff8a1b04c56b9445a891cb48db7fc0f0f4445 (patch)
tree48bdf61f0a130263f7babb80e6e8a6c8ea491289 /networking
parent63bfe0e4c0f3e14dc3a358bbb1ba59a1ade421e0 (diff)
downloadbusybox-c67ff8a1b04c56b9445a891cb48db7fc0f0f4445.tar.gz
tls: fix a potential (currently "disabled" by a macro) SHA1-related bug
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/tls.c b/networking/tls.c
index be13c6d5e..253d687b4 100644
--- a/networking/tls.c
+++ b/networking/tls.c
@@ -525,7 +525,7 @@ static unsigned hmac(tls_state_t *tls, uint8_t *out, uint8_t *key, unsigned key_
va_start(va, key_size);
hmac_begin(&pre, key, key_size,
- (ENABLE_FEATURE_TLS_SHA1 || tls->MAC_size == SHA256_OUTSIZE)
+ (!ENABLE_FEATURE_TLS_SHA1 || tls->MAC_size == SHA256_OUTSIZE)
? sha256_begin
: sha1_begin
);