From 2ff286c26c29b69b02ca99656d26d2f8cfd54682 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Mon, 21 Jun 2021 08:55:50 +0200 Subject: Add and use HAS_PREFIX() and CHECK_AND_SKIP_PREFIX() for checking if string has literal prefix Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15847) --- test/dtls_mtu_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/dtls_mtu_test.c') diff --git a/test/dtls_mtu_test.c b/test/dtls_mtu_test.c index 612b76a3bc..b3ea3cf44c 100644 --- a/test/dtls_mtu_test.c +++ b/test/dtls_mtu_test.c @@ -168,7 +168,7 @@ static int run_mtu_tests(void) const char *cipher_name = SSL_CIPHER_get_name(cipher); /* As noted above, only one test for each enc/mac variant. */ - if (strncmp(cipher_name, "PSK-", 4) != 0) + if (!HAS_PREFIX(cipher_name, "PSK-")) continue; if (!TEST_int_gt(ret = mtu_test(ctx, cipher_name, 0), 0)) -- cgit v1.2.3