From 7f588d20cd9ed2bb0ee2577a4523453964f532b0 Mon Sep 17 00:00:00 2001 From: Pauli Date: Wed, 4 Sep 2019 19:27:08 +1000 Subject: OSSL_PARAM_construct_utf8_string computes the string length. If the passed string length is zero, the function computes the string length from the passed string. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/9760) --- test/evp_test.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/evp_test.c') diff --git a/test/evp_test.c b/test/evp_test.c index fd50c71354..b2047d591a 100644 --- a/test/evp_test.c +++ b/test/evp_test.c @@ -1173,14 +1173,12 @@ static int mac_test_run_mac(EVP_TEST *t) OSSL_MAC_PARAM_CIPHER) != NULL) { params[params_n++] = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_CIPHER, - expected->alg, - strlen(expected->alg) + 1); + expected->alg, 0); } else if (OSSL_PARAM_locate_const(defined_params, OSSL_MAC_PARAM_DIGEST) != NULL) { params[params_n++] = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_DIGEST, - expected->alg, - strlen(expected->alg) + 1); + expected->alg, 0); } else { t->err = "MAC_BAD_PARAMS"; goto err; -- cgit v1.2.3