diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-07-09 16:36:47 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-07-09 16:36:47 +0000 |
commit | 505f576d200c4a7599785128f8d53fdafdf77250 (patch) | |
tree | 765128d1701629bbdf07e6e56c1a0e49612dc256 /lib/libcrypto | |
parent | bb42cd9608781f5762216d3c9b22a32af8504e88 (diff) |
Use C99 initializers for tls1_prf_pkey_meth()
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/kdf/tls1_prf.c | 42 |
1 files changed, 23 insertions, 19 deletions
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, |