From 994a924b3c28780b2a7ba8662a9544abcdfab8b0 Mon Sep 17 00:00:00 2001 From: Pauli Date: Wed, 7 Oct 2020 12:18:36 +1000 Subject: null prov: fix gettable param array type. Reviewed-by: Nicola Tuveri (Merged from https://github.com/openssl/openssl/pull/13084) --- providers/nullprov.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'providers/nullprov.c') diff --git a/providers/nullprov.c b/providers/nullprov.c index 537c90b78f..d5b4c05d93 100644 --- a/providers/nullprov.c +++ b/providers/nullprov.c @@ -19,15 +19,15 @@ OSSL_provider_init_fn ossl_null_provider_init; /* Parameters we provide to the core */ -static const OSSL_ITEM null_param_types[] = { - { OSSL_PARAM_UTF8_PTR, OSSL_PROV_PARAM_NAME }, - { OSSL_PARAM_UTF8_PTR, OSSL_PROV_PARAM_VERSION }, - { OSSL_PARAM_UTF8_PTR, OSSL_PROV_PARAM_BUILDINFO }, - { OSSL_PARAM_INTEGER, OSSL_PROV_PARAM_STATUS }, - { 0, NULL } +static const OSSL_PARAM null_param_types[] = { + OSSL_PARAM_DEFN(OSSL_PROV_PARAM_NAME, OSSL_PARAM_UTF8_PTR, NULL, 0), + OSSL_PARAM_DEFN(OSSL_PROV_PARAM_VERSION, OSSL_PARAM_UTF8_PTR, NULL, 0), + OSSL_PARAM_DEFN(OSSL_PROV_PARAM_BUILDINFO, OSSL_PARAM_UTF8_PTR, NULL, 0), + OSSL_PARAM_DEFN(OSSL_PROV_PARAM_STATUS, OSSL_PARAM_INTEGER, NULL, 0), + OSSL_PARAM_END }; -static const OSSL_ITEM *null_gettable_params(const OSSL_PROVIDER *prov) +static const OSSL_PARAM *null_gettable_params(const OSSL_PROVIDER *prov) { return null_param_types; } -- cgit v1.2.3