diff options
-rw-r--r-- | networking/tls.c | 2 |
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 ); |