diff options
author | Pauli <paul.dale@oracle.com> | 2020-04-21 02:49:19 +0200 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-04-22 05:56:44 +0200 |
commit | 8d5fb6485282c79bfe9f1ebab14eab515910e370 (patch) | |
tree | 7fe3b356021db7eba7529a9569d2c61348324e99 /test/params_test.c | |
parent | [crypto/ec] deprecate Jprojective_coordinates_GFp functions (diff) | |
download | openssl-8d5fb6485282c79bfe9f1ebab14eab515910e370.tar.xz openssl-8d5fb6485282c79bfe9f1ebab14eab515910e370.zip |
params: add functionality to test if an OSSL_PARAM has been set.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11588)
Diffstat (limited to 'test/params_test.c')
-rw-r--r-- | test/params_test.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/params_test.c b/test/params_test.c index 339a51694f..5ed7d36a1e 100644 --- a/test/params_test.c +++ b/test/params_test.c @@ -467,8 +467,7 @@ static int test_case_variant(OSSL_PARAM *params, const struct provider_dispatch_ || !TEST_size_t_eq(p->return_size, sizeof(p6_init)) /* "provider" value */ || !TEST_str_eq(app_p6, p6_init) /* "provider" value */ || !TEST_char_eq(foo[0], app_foo_init) /* Should remain untouched */ - || !TEST_ptr(p = OSSL_PARAM_locate(params, "foo")) - || !TEST_int_eq(p->return_size, 0)) + || !TEST_ptr(p = OSSL_PARAM_locate(params, "foo"))) errcnt++; /* @@ -519,8 +518,7 @@ static int test_case_variant(OSSL_PARAM *params, const struct provider_dispatch_ sizeof(app_p6_init)) /* app value */ || !TEST_str_eq(app_p6, app_p6_init) /* app value */ || !TEST_char_eq(foo[0], app_foo_init) /* Should remain untouched */ - || !TEST_ptr(p = OSSL_PARAM_locate(params, "foo")) - || !TEST_int_eq(p->return_size, 0)) + || !TEST_ptr(p = OSSL_PARAM_locate(params, "foo"))) errcnt++; fin: |