summaryrefslogtreecommitdiff
path: root/lib/libcrypto/hidden
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-03-02 11:11:12 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-03-02 11:11:12 +0000
commit4559cf382abe32845532652927a125d864bf64b5 (patch)
tree4b6dbfb3f2eb324fb784015a3e86cf8205625f02 /lib/libcrypto/hidden
parent61f3ff1268231efcf685086dad9433960502b0b0 (diff)
Make LHASH_OF() and STACK_OF() use opaque structs
This removes internals of these two special snowflakes and will allow further simplifications. Unfortunately, there are some pieces of software that actually use LHASH_OF() (looking at you, pound, Ruby, and openssl(1)), so we get to keep exposing this garbage, at least for now. Expose lh_error() as a symbol to replace a macro reaching into _LHASH. lh_down_load() is no longer available. _LHASH and _STACK are now opaque, LHASH_NODE becomes internal-only. from jsing
Diffstat (limited to 'lib/libcrypto/hidden')
-rw-r--r--lib/libcrypto/hidden/openssl/lhash.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libcrypto/hidden/openssl/lhash.h b/lib/libcrypto/hidden/openssl/lhash.h
index eee272cf462..2cf5b2dc5ac 100644
--- a/lib/libcrypto/hidden/openssl/lhash.h
+++ b/lib/libcrypto/hidden/openssl/lhash.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: lhash.h,v 1.3 2024/03/02 11:04:51 tb Exp $ */
+/* $OpenBSD: lhash.h,v 1.4 2024/03/02 11:11:11 tb Exp $ */
/*
* Copyright (c) 2023 Bob Beck <beck@openbsd.org>
*
@@ -27,6 +27,7 @@
LCRYPTO_USED(lh_new);
LCRYPTO_USED(lh_free);
+LCRYPTO_USED(lh_error);
LCRYPTO_USED(lh_insert);
LCRYPTO_USED(lh_delete);
LCRYPTO_USED(lh_retrieve);