summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/crypto/hmac/hm_pmeth.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libssl/src/crypto/hmac/hm_pmeth.c')
-rw-r--r--lib/libssl/src/crypto/hmac/hm_pmeth.c41
1 files changed, 11 insertions, 30 deletions
diff --git a/lib/libssl/src/crypto/hmac/hm_pmeth.c b/lib/libssl/src/crypto/hmac/hm_pmeth.c
index f1c67329d03..4d287724c30 100644
--- a/lib/libssl/src/crypto/hmac/hm_pmeth.c
+++ b/lib/libssl/src/crypto/hmac/hm_pmeth.c
@@ -235,37 +235,18 @@ static int pkey_hmac_ctrl_str(EVP_PKEY_CTX *ctx,
return -2;
}
-const EVP_PKEY_METHOD hmac_pkey_meth =
- {
- EVP_PKEY_HMAC,
- 0,
- pkey_hmac_init,
- pkey_hmac_copy,
- pkey_hmac_cleanup,
-
- 0, 0,
-
- 0,
- pkey_hmac_keygen,
-
- 0, 0,
-
- 0, 0,
-
- 0,0,
-
- hmac_signctx_init,
- hmac_signctx,
-
- 0,0,
-
- 0,0,
+const EVP_PKEY_METHOD hmac_pkey_meth = {
+ .pkey_id = EVP_PKEY_HMAC,
- 0,0,
+ .init = pkey_hmac_init,
+ .copy = pkey_hmac_copy,
+ .cleanup = pkey_hmac_cleanup,
- 0,0,
+ .keygen = pkey_hmac_keygen,
- pkey_hmac_ctrl,
- pkey_hmac_ctrl_str
+ .signctx_init = hmac_signctx_init,
+ .signctx = hmac_signctx,
- };
+ .ctrl = pkey_hmac_ctrl,
+ .ctrl_str = pkey_hmac_ctrl_str
+};