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 /crypto | |
parent | bb315ca716656b7aff89f86d35988062952ccb21 (diff) |
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 'crypto')
-rw-r--r-- | crypto/params.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; +} |