diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-06-21 08:55:50 +0200 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-11-17 15:48:34 +0100 |
commit | 2ff286c26c29b69b02ca99656d26d2f8cfd54682 (patch) | |
tree | 71a01c51c47d0dd9528ff14357615d71420ba5a1 /test/dtls_mtu_test.c | |
parent | 80-test_cmp_http: Make server diagnostics more verbose to aid debugging (diff) | |
download | openssl-2ff286c26c29b69b02ca99656d26d2f8cfd54682.tar.xz openssl-2ff286c26c29b69b02ca99656d26d2f8cfd54682.zip |
Add and use HAS_PREFIX() and CHECK_AND_SKIP_PREFIX() for checking if string has literal prefix
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15847)
Diffstat (limited to 'test/dtls_mtu_test.c')
-rw-r--r-- | test/dtls_mtu_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |