From: tb Date: Tue, 9 Jul 2024 16:36:46 +0000 (+0000) Subject: Use C99 initializers for tls1_prf_pkey_meth() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=aa9e659f7100ee7df06e6e554f51a9799b9249c3;p=openbsd Use C99 initializers for tls1_prf_pkey_meth() --- diff --git a/lib/libcrypto/kdf/tls1_prf.c b/lib/libcrypto/kdf/tls1_prf.c index 00cc4e8fec1..a03daf05fcd 100644 --- a/lib/libcrypto/kdf/tls1_prf.c +++ b/lib/libcrypto/kdf/tls1_prf.c @@ -156,33 +156,37 @@ static int pkey_tls1_prf_derive(EVP_PKEY_CTX *ctx, unsigned char *key, } const EVP_PKEY_METHOD tls1_prf_pkey_meth = { - EVP_PKEY_TLS1_PRF, - 0, - pkey_tls1_prf_init, - 0, - pkey_tls1_prf_cleanup, + .pkey_id = EVP_PKEY_TLS1_PRF, + .flags = 0, - 0, 0, - 0, 0, + .init = pkey_tls1_prf_init, + .copy = NULL, + .cleanup = pkey_tls1_prf_cleanup, - 0, - 0, + .paramgen = NULL, - 0, - 0, + .keygen = NULL, - 0, 0, + .sign_init = NULL, + .sign = NULL, - 0, 0, 0, 0, + .verify_init = NULL, + .verify = NULL, - 0, 0, + .verify_recover = NULL, - 0, 0, + .signctx_init = NULL, + .signctx = NULL, - 0, - pkey_tls1_prf_derive, - pkey_tls1_prf_ctrl, - pkey_tls1_prf_ctrl_str + .encrypt = NULL, + + .decrypt = NULL, + + .derive_init = NULL, + .derive = pkey_tls1_prf_derive, + + .ctrl = pkey_tls1_prf_ctrl, + .ctrl_str = pkey_tls1_prf_ctrl_str, }; static int tls1_prf_P_hash(const EVP_MD *md,