summaryrefslogtreecommitdiff
path: root/lib/libcrypto/ecdh/ech_ossl.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/ecdh/ech_ossl.c')
-rw-r--r--lib/libcrypto/ecdh/ech_ossl.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/libcrypto/ecdh/ech_ossl.c b/lib/libcrypto/ecdh/ech_ossl.c
index a63eb4922db..129475f7bb4 100644
--- a/lib/libcrypto/ecdh/ech_ossl.c
+++ b/lib/libcrypto/ecdh/ech_ossl.c
@@ -84,14 +84,8 @@ static int ecdh_compute_key(void *out, size_t len, const EC_POINT *pub_key,
void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen));
static ECDH_METHOD openssl_ecdh_meth = {
- "OpenSSL ECDH method",
- ecdh_compute_key,
-#if 0
- NULL, /* init */
- NULL, /* finish */
-#endif
- 0, /* flags */
- NULL /* app_data */
+ .name = "OpenSSL ECDH method",
+ .compute_key = ecdh_compute_key
};
const ECDH_METHOD *ECDH_OpenSSL(void)