From 4ca5d704e4e9a4c2fe630db0434fe7e077bfc189 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 25 Jun 2023 19:14:14 +0000 Subject: Move the ecdh_method struct declaration to ech_lib.c No other file uses this anymore --- src/lib/libcrypto/ecdh/ech_lib.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/lib/libcrypto/ecdh/ech_lib.c') diff --git a/src/lib/libcrypto/ecdh/ech_lib.c b/src/lib/libcrypto/ecdh/ech_lib.c index d968793208..c537ba00bf 100644 --- a/src/lib/libcrypto/ecdh/ech_lib.c +++ b/src/lib/libcrypto/ecdh/ech_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ech_lib.c,v 1.20 2023/06/25 19:04:35 tb Exp $ */ +/* $OpenBSD: ech_lib.c,v 1.21 2023/06/25 19:14:14 tb Exp $ */ /* ==================================================================== * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. * @@ -77,7 +77,14 @@ #include #include "ec_local.h" -#include "ech_local.h" + +struct ecdh_method { + const char *name; + int (*compute_key)(void *key, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, + void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen)); + int flags; + char *app_data; +}; static const ECDH_METHOD *default_ECDH_method = NULL; -- cgit v1.2.3-55-g6feb