Removed unnecessary brace in ktls_configure_crypto
authorAbhirup Manna <abhirup.m92@gmail.com>
Wed, 30 Aug 2023 16:53:20 +0000 (22:23 +0530)
committerTomas Mraz <tomas@openssl.org>
Fri, 1 Sep 2023 09:41:16 +0000 (11:41 +0200)
CLA: trivial

Fixes #21498

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21908)

ssl/record/methods/ktls_meth.c

index 2d3c33bf7a8ccd496b8cdd11d48c04dbf189bae4..ff8d7218597cb62d20e29f5da036c32e79b3ab50 100644 (file)
@@ -95,7 +95,7 @@ int ktls_configure_crypto(OSSL_LIB_CTX *libctx, int version, const EVP_CIPHER *c
             return 0;
         if (EVP_MD_is_a(md, "SHA1"))
             crypto_info->auth_algorithm = CRYPTO_SHA1_HMAC;
-        else if (EVP_MD_is_a(md, "SHA2-256")) {
+        else if (EVP_MD_is_a(md, "SHA2-256"))
             crypto_info->auth_algorithm = CRYPTO_SHA2_256_HMAC;
         else if (EVP_MD_is_a(md, "SHA2-384"))
             crypto_info->auth_algorithm = CRYPTO_SHA2_384_HMAC;