diff options
author | tb <> | 2023-06-25 18:27:38 +0000 |
---|---|---|
committer | tb <> | 2023-06-25 18:27:38 +0000 |
commit | 93a17583d912ca338be885974e669a9eb871c489 (patch) | |
tree | bb6e356d1d375cfa880793f31be33367ff221d48 /src/lib/libcrypto/ecdsa/ecs_lib.c | |
parent | 00a8f40a4141146dcf69a6d3d6bc5561b75a55a4 (diff) | |
download | openbsd-93a17583d912ca338be885974e669a9eb871c489.tar.gz openbsd-93a17583d912ca338be885974e669a9eb871c489.tar.bz2 openbsd-93a17583d912ca338be885974e669a9eb871c489.zip |
Make ECDH and ECDSA ex_data handlers 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 and smtpd used
to use the ECDSA version.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/ecdsa/ecs_lib.c')
-rw-r--r-- | src/lib/libcrypto/ecdsa/ecs_lib.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecs_lib.c b/src/lib/libcrypto/ecdsa/ecs_lib.c index caebeeb1f9..9ba5db2fca 100644 --- a/src/lib/libcrypto/ecdsa/ecs_lib.c +++ b/src/lib/libcrypto/ecdsa/ecs_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecs_lib.c,v 1.18 2023/06/25 18:24:33 tb Exp $ */ | 1 | /* $OpenBSD: ecs_lib.c,v 1.19 2023/06/25 18:27:38 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2005 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2005 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -219,26 +219,17 @@ int | |||
219 | ECDSA_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, | 219 | ECDSA_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, |
220 | CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func) | 220 | CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func) |
221 | { | 221 | { |
222 | return CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_ECDSA, argl, argp, | 222 | return -1; |
223 | new_func, dup_func, free_func); | ||
224 | } | 223 | } |
225 | 224 | ||
226 | int | 225 | int |
227 | ECDSA_set_ex_data(EC_KEY *d, int idx, void *arg) | 226 | ECDSA_set_ex_data(EC_KEY *d, int idx, void *arg) |
228 | { | 227 | { |
229 | ECDSA_DATA *ecdsa; | 228 | return 0; |
230 | ecdsa = ecdsa_check(d); | ||
231 | if (ecdsa == NULL) | ||
232 | return 0; | ||
233 | return (CRYPTO_set_ex_data(&ecdsa->ex_data, idx, arg)); | ||
234 | } | 229 | } |
235 | 230 | ||
236 | void * | 231 | void * |
237 | ECDSA_get_ex_data(EC_KEY *d, int idx) | 232 | ECDSA_get_ex_data(EC_KEY *d, int idx) |
238 | { | 233 | { |
239 | ECDSA_DATA *ecdsa; | 234 | return NULL; |
240 | ecdsa = ecdsa_check(d); | ||
241 | if (ecdsa == NULL) | ||
242 | return NULL; | ||
243 | return (CRYPTO_get_ex_data(&ecdsa->ex_data, idx)); | ||
244 | } | 235 | } |