summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-06-25 19:14:15 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-06-25 19:14:15 +0000
commit1ef0e6a8f923ea71210a6d35e4f673ce93f48d08 (patch)
tree87339a7aa8e011a3b5058a862219390752ce5759 /lib
parent19993232b3f5cbc0a0189f64811f59ac90f17e00 (diff)
Move the ecdh_method struct declaration to ech_lib.c
No other file uses this anymore
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/ecdh/ech_lib.c11
-rw-r--r--lib/libcrypto/ecdh/ech_local.h10
2 files changed, 10 insertions, 11 deletions
diff --git a/lib/libcrypto/ecdh/ech_lib.c b/lib/libcrypto/ecdh/ech_lib.c
index d9687932081..c537ba00bf8 100644
--- a/lib/libcrypto/ecdh/ech_lib.c
+++ b/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 <openssl/err.h>
#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;
diff --git a/lib/libcrypto/ecdh/ech_local.h b/lib/libcrypto/ecdh/ech_local.h
index fefa817b1cb..44aa2cf2502 100644
--- a/lib/libcrypto/ecdh/ech_local.h
+++ b/lib/libcrypto/ecdh/ech_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ech_local.h,v 1.4 2023/06/25 18:45:56 tb Exp $ */
+/* $OpenBSD: ech_local.h,v 1.5 2023/06/25 19:14:14 tb Exp $ */
/* ====================================================================
* Copyright (c) 2000-2005 The OpenSSL Project. All rights reserved.
*
@@ -60,14 +60,6 @@
__BEGIN_HIDDEN_DECLS
-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;
-};
-
/*
* ECDH Key Derivation Function as defined in ANSI X9.63.
*/