summaryrefslogtreecommitdiff
path: root/test/params_api_test.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-04-09 08:31:09 +0200
committerRichard Levitte <levitte@openssl.org>2019-04-09 14:10:23 +0200
commitf55ed701a458e3b3840a5d8c8dd3019d7d71a26f (patch)
tree76387777913e2de73294de2cf747f200104cdca8 /test/params_api_test.c
parentb926f9deb3dc79d00f0a989370e95867516a3a17 (diff)
downloadopenssl-new-f55ed701a458e3b3840a5d8c8dd3019d7d71a26f.tar.gz
Params API: {utf8,octet}_ptr need to know the data size
When the purpose is to pass parameters to a setter function, that setter function needs to know the size of the data passed. This remains true for the pointer data types as well. Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8703)
Diffstat (limited to 'test/params_api_test.c')
-rw-r--r--test/params_api_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/params_api_test.c b/test/params_api_test.c
index a3d2337745..df708da7e1 100644
--- a/test/params_api_test.c
+++ b/test/params_api_test.c
@@ -475,8 +475,8 @@ static int test_param_construct(void)
&sz);
params[n++] = OSSL_PARAM_construct_octet_string("octstr", buf, sizeof(buf),
&sz);
- params[n++] = OSSL_PARAM_construct_utf8_ptr("utf8ptr", &bufp, &sz);
- params[n++] = OSSL_PARAM_construct_octet_ptr("octptr", &vp, &sz);
+ params[n++] = OSSL_PARAM_construct_utf8_ptr("utf8ptr", &bufp, 0, &sz);
+ params[n++] = OSSL_PARAM_construct_octet_ptr("octptr", &vp, 0, &sz);
params[n] = OSSL_PARAM_construct_end();
/* Search failure */