]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
make isc_ossl_wrap_ecdsa_set_deterministic consistent with style
authorAydın Mercan <aydin@isc.org>
Mon, 15 Dec 2025 16:26:50 +0000 (19:26 +0300)
committerAydın Mercan <aydin@isc.org>
Mon, 2 Feb 2026 08:50:14 +0000 (11:50 +0300)
lib/isc/ossl_wrap/ossl3.c

index 836fc0d776696a0d951236edbef221c768ac6314..1478e58683e023706f4748f334d687d4c3b912bf 100644 (file)
@@ -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"));
        }