diff options
author | Richard Levitte <levitte@openssl.org> | 2019-04-09 09:49:58 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-04-09 11:18:26 +0200 |
commit | 195852fefc1ef090977ed3cc3334f1dfbd6bac34 (patch) | |
tree | 7c265fa36cf2d9c76f6d2c8b0243c969e9eabe49 /test/params_test.c | |
parent | EC keygen updates + changed ecdsa_sign to use BN_secure_new (diff) | |
download | openssl-195852fefc1ef090977ed3cc3334f1dfbd6bac34.tar.xz openssl-195852fefc1ef090977ed3cc3334f1dfbd6bac34.zip |
Params: add OSSL_PARAM_construct_end()
OSSL_PARAM_END is a macro that can only be used to initialize an
OSSL_PARAM array, not to assign an array element later on. For
completion, we add an end constructor to facilitate that kind of
assignment.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8704)
Diffstat (limited to 'test/params_test.c')
-rw-r--r-- | test/params_test.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/params_test.c b/test/params_test.c index 338e6b2043..8d456bbbde 100644 --- a/test/params_test.c +++ b/test/params_test.c @@ -391,7 +391,6 @@ static OSSL_PARAM *construct_api_params(void) { size_t n = 0; static OSSL_PARAM params[10]; - OSSL_PARAM param_end = OSSL_PARAM_END; params[n++] = OSSL_PARAM_construct_int("p1", &app_p1, NULL); params[n++] = OSSL_PARAM_construct_BN("p3", bignumbin, sizeof(bignumbin), @@ -404,7 +403,7 @@ static OSSL_PARAM *construct_api_params(void) &app_p6_l); params[n++] = OSSL_PARAM_construct_octet_string("foo", &foo, sizeof(foo), &foo_l); - params[n++] = param_end; + params[n++] = OSSL_PARAM_construct_end(); return params; } |