From: Aydın Mercan Date: Mon, 15 Dec 2025 16:26:50 +0000 (+0300) Subject: make isc_ossl_wrap_ecdsa_set_deterministic consistent with style X-Git-Tag: v9.21.18~2^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21f80a2bd79cb1a5d18c3f6571fc5ce63a33b090;p=thirdparty%2Fbind9.git make isc_ossl_wrap_ecdsa_set_deterministic consistent with style --- diff --git a/lib/isc/ossl_wrap/ossl3.c b/lib/isc/ossl_wrap/ossl3.c index 836fc0d7766..1478e58683e 100644 --- a/lib/isc/ossl_wrap/ossl3.c +++ b/lib/isc/ossl_wrap/ossl3.c @@ -437,15 +437,14 @@ isc_result_t isc_ossl_wrap_ecdsa_set_deterministic(EVP_PKEY_CTX *pctx, const char *hash) { unsigned int rfc6979 = 1; isc_result_t result; - OSSL_PARAM params[3]; + OSSL_PARAM params[3] = { + OSSL_PARAM_construct_utf8_string("digest", UNCONST(hash), 0), + OSSL_PARAM_construct_uint("nonce-type", &rfc6979), + OSSL_PARAM_END, + }; REQUIRE(pctx != NULL && hash != NULL); - params[0] = OSSL_PARAM_construct_utf8_string("digest", UNCONST(hash), - 0); - params[1] = OSSL_PARAM_construct_uint("nonce-type", &rfc6979); - params[2] = OSSL_PARAM_construct_end(); - if (EVP_PKEY_CTX_set_params(pctx, params) != 1) { CLEANUP(OSSL_WRAP_ERROR("EVP_PKEY_CTX_set_params")); }