summaryrefslogtreecommitdiff
path: root/lib/libcrypto/dh/dh_pmeth.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/dh/dh_pmeth.c')
-rw-r--r--lib/libcrypto/dh/dh_pmeth.c42
1 files changed, 12 insertions, 30 deletions
diff --git a/lib/libcrypto/dh/dh_pmeth.c b/lib/libcrypto/dh/dh_pmeth.c
index ec4553c0a89..c359bb4d2ba 100644
--- a/lib/libcrypto/dh/dh_pmeth.c
+++ b/lib/libcrypto/dh/dh_pmeth.c
@@ -217,38 +217,20 @@ static int pkey_dh_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen)
return 1;
}
-const EVP_PKEY_METHOD dh_pkey_meth =
- {
- EVP_PKEY_DH,
- EVP_PKEY_FLAG_AUTOARGLEN,
- pkey_dh_init,
- pkey_dh_copy,
- pkey_dh_cleanup,
-
- 0,
- pkey_dh_paramgen,
-
- 0,
- pkey_dh_keygen,
-
- 0,
- 0,
-
- 0,
- 0,
-
- 0,0,
-
- 0,0,0,0,
+const EVP_PKEY_METHOD dh_pkey_meth = {
+ .pkey_id = EVP_PKEY_DH,
+ .flags = EVP_PKEY_FLAG_AUTOARGLEN,
- 0,0,
+ .init = pkey_dh_init,
+ .copy = pkey_dh_copy,
+ .cleanup = pkey_dh_cleanup,
- 0,0,
+ .paramgen = pkey_dh_paramgen,
- 0,
- pkey_dh_derive,
+ .keygen = pkey_dh_keygen,
- pkey_dh_ctrl,
- pkey_dh_ctrl_str
+ .derive = pkey_dh_derive,
- };
+ .ctrl = pkey_dh_ctrl,
+ .ctrl_str = pkey_dh_ctrl_str
+};