From 195852fefc1ef090977ed3cc3334f1dfbd6bac34 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 9 Apr 2019 09:49:58 +0200 Subject: 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 (Merged from https://github.com/openssl/openssl/pull/8704) --- crypto/params.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crypto/params.c') diff --git a/crypto/params.c b/crypto/params.c index 465bb32711..8b75e04839 100644 --- a/crypto/params.c +++ b/crypto/params.c @@ -590,3 +590,10 @@ OSSL_PARAM OSSL_PARAM_construct_octet_ptr(const char *key, void **buf, { return ossl_param_construct(key, OSSL_PARAM_OCTET_PTR, buf, 0, rsize); } + +OSSL_PARAM OSSL_PARAM_construct_end(void) +{ + OSSL_PARAM end = OSSL_PARAM_END; + + return end; +} -- cgit v1.2.3