From 21f80a2bd79cb1a5d18c3f6571fc5ce63a33b090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ayd=C4=B1n=20Mercan?= Date: Mon, 15 Dec 2025 19:26:50 +0300 Subject: [PATCH] make isc_ossl_wrap_ecdsa_set_deterministic consistent with style --- lib/isc/ossl_wrap/ossl3.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/isc/ossl_wrap/ossl3.c b/lib/isc/ossl_wrap/ossl3.c index 836fc0d776..1478e58683 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")); }