diff options
author | tb <> | 2023-06-25 19:14:14 +0000 |
---|---|---|
committer | tb <> | 2023-06-25 19:14:14 +0000 |
commit | 561ceb834d200d4d6b594fc9e990f061f2499baf (patch) | |
tree | fb7955931f6eb75542adba144aab162190401c2c /src/lib/libcrypto/ecdh/ech_lib.c | |
parent | ee47cbc9921c1d9c4e8fbbf947e18302394c28d0 (diff) | |
download | openbsd-561ceb834d200d4d6b594fc9e990f061f2499baf.tar.gz openbsd-561ceb834d200d4d6b594fc9e990f061f2499baf.tar.bz2 openbsd-561ceb834d200d4d6b594fc9e990f061f2499baf.zip |
Move the ecdh_method struct declaration to ech_lib.c
No other file uses this anymore
Diffstat (limited to 'src/lib/libcrypto/ecdh/ech_lib.c')
-rw-r--r-- | src/lib/libcrypto/ecdh/ech_lib.c | 11 |
1 files changed, 9 insertions, 2 deletions
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 @@ | |||
1 | /* $OpenBSD: ech_lib.c,v 1.20 2023/06/25 19:04:35 tb Exp $ */ | 1 | /* $OpenBSD: ech_lib.c,v 1.21 2023/06/25 19:14:14 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. |
4 | * | 4 | * |
@@ -77,7 +77,14 @@ | |||
77 | #include <openssl/err.h> | 77 | #include <openssl/err.h> |
78 | 78 | ||
79 | #include "ec_local.h" | 79 | #include "ec_local.h" |
80 | #include "ech_local.h" | 80 | |
81 | struct ecdh_method { | ||
82 | const char *name; | ||
83 | int (*compute_key)(void *key, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, | ||
84 | void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen)); | ||
85 | int flags; | ||
86 | char *app_data; | ||
87 | }; | ||
81 | 88 | ||
82 | static const ECDH_METHOD *default_ECDH_method = NULL; | 89 | static const ECDH_METHOD *default_ECDH_method = NULL; |
83 | 90 | ||