diff options
author | tb <> | 2023-06-25 18:24:33 +0000 |
---|---|---|
committer | tb <> | 2023-06-25 18:24:33 +0000 |
commit | 00a8f40a4141146dcf69a6d3d6bc5561b75a55a4 (patch) | |
tree | 83342f148922e9957e7456b1a2ec62b6969fdf61 /src/lib/libcrypto/ecdh/ech_lib.c | |
parent | 25c6f767aa1da36439a0be62f54faa244f747f8c (diff) | |
download | openbsd-00a8f40a4141146dcf69a6d3d6bc5561b75a55a4.tar.gz openbsd-00a8f40a4141146dcf69a6d3d6bc5561b75a55a4.tar.bz2 openbsd-00a8f40a4141146dcf69a6d3d6bc5561b75a55a4.zip |
Make {ECDH,ECDSA}_set_method() always fail
They will be removed in the next major bump. No port uses them. They use
code that is in the way of upcoming surgery. Only libtls used the ECDSA
version, but thankfully op cleaned that up.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/ecdh/ech_lib.c')
-rw-r--r-- | src/lib/libcrypto/ecdh/ech_lib.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/lib/libcrypto/ecdh/ech_lib.c b/src/lib/libcrypto/ecdh/ech_lib.c index 15d7737c39..90e14e1108 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.16 2023/04/25 19:26:45 tb Exp $ */ | 1 | /* $OpenBSD: ech_lib.c,v 1.17 2023/06/25 18:24:33 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. |
4 | * | 4 | * |
@@ -103,19 +103,7 @@ ECDH_get_default_method(void) | |||
103 | int | 103 | int |
104 | ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) | 104 | ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) |
105 | { | 105 | { |
106 | ECDH_DATA *ecdh; | 106 | return 0; |
107 | |||
108 | ecdh = ecdh_check(eckey); | ||
109 | |||
110 | if (ecdh == NULL) | ||
111 | return 0; | ||
112 | |||
113 | #ifndef OPENSSL_NO_ENGINE | ||
114 | ENGINE_finish(ecdh->engine); | ||
115 | ecdh->engine = NULL; | ||
116 | #endif | ||
117 | ecdh->meth = meth; | ||
118 | return 1; | ||
119 | } | 107 | } |
120 | 108 | ||
121 | static ECDH_DATA * | 109 | static ECDH_DATA * |