diff options
author | tb <> | 2024-03-02 11:20:36 +0000 |
---|---|---|
committer | tb <> | 2024-03-02 11:20:36 +0000 |
commit | d0b64fd35a751a9304cb39bfc275ec1121c14fd7 (patch) | |
tree | 37c6fb47ccd88da3a9e9bc8cd8f0e6c7282eab40 /src/lib/libcrypto/stack/stack.c | |
parent | d0dca40aabf970e230bf037138cf9765723fbeec (diff) | |
download | openbsd-d0b64fd35a751a9304cb39bfc275ec1121c14fd7.tar.gz openbsd-d0b64fd35a751a9304cb39bfc275ec1121c14fd7.tar.bz2 openbsd-d0b64fd35a751a9304cb39bfc275ec1121c14fd7.zip |
Remove sk_find_ex()
This API intends to find the closest match to the needle. M2Crypto
exposes it because it can. This will be fixed by patching the port.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/stack/stack.c')
-rw-r--r-- | src/lib/libcrypto/stack/stack.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/lib/libcrypto/stack/stack.c b/src/lib/libcrypto/stack/stack.c index 99bb52dcfa..60a302afc2 100644 --- a/src/lib/libcrypto/stack/stack.c +++ b/src/lib/libcrypto/stack/stack.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: stack.c,v 1.27 2024/03/02 11:11:11 tb Exp $ */ | 1 | /* $OpenBSD: stack.c,v 1.28 2024/03/02 11:20:36 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -266,13 +266,6 @@ sk_find(_STACK *st, void *data) | |||
266 | LCRYPTO_ALIAS(sk_find); | 266 | LCRYPTO_ALIAS(sk_find); |
267 | 267 | ||
268 | int | 268 | int |
269 | sk_find_ex(_STACK *st, void *data) | ||
270 | { | ||
271 | return internal_find(st, data, OBJ_BSEARCH_VALUE_ON_NOMATCH); | ||
272 | } | ||
273 | LCRYPTO_ALIAS(sk_find_ex); | ||
274 | |||
275 | int | ||
276 | sk_push(_STACK *st, void *data) | 269 | sk_push(_STACK *st, void *data) |
277 | { | 270 | { |
278 | return (sk_insert(st, data, st->num)); | 271 | return (sk_insert(st, data, st->num)); |