diff options
author | Pauli <paul.dale@oracle.com> | 2019-09-04 19:27:08 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-09-04 19:41:22 +1000 |
commit | 7f588d20cd9ed2bb0ee2577a4523453964f532b0 (patch) | |
tree | 02b81ea1b5152c87e1b0ebe802dc2581df6fcfa5 /test | |
parent | 550f974a09942ace37cf3cf14021ea5e51e6dd11 (diff) |
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 <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9760)
Diffstat (limited to 'test')
-rw-r--r-- | test/evp_test.c | 6 |
1 files changed, 2 insertions, 4 deletions
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; |