diff options
| author | tb <> | 2024-03-02 11:11:11 +0000 |
|---|---|---|
| committer | tb <> | 2024-03-02 11:11:11 +0000 |
| commit | 26367add3db68a3e89bda58a3c85174507f8e71a (patch) | |
| tree | 865633fee7fa46f45fa7bee8495692a2bf76544f /src/lib/libcrypto/hidden/openssl | |
| parent | 792421b3f220abcbd1405485edc9bf6b39485769 (diff) | |
| download | openbsd-26367add3db68a3e89bda58a3c85174507f8e71a.tar.gz openbsd-26367add3db68a3e89bda58a3c85174507f8e71a.tar.bz2 openbsd-26367add3db68a3e89bda58a3c85174507f8e71a.zip | |
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 'src/lib/libcrypto/hidden/openssl')
| -rw-r--r-- | src/lib/libcrypto/hidden/openssl/lhash.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/hidden/openssl/lhash.h b/src/lib/libcrypto/hidden/openssl/lhash.h index eee272cf46..2cf5b2dc5a 100644 --- a/src/lib/libcrypto/hidden/openssl/lhash.h +++ b/src/lib/libcrypto/hidden/openssl/lhash.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: lhash.h,v 1.3 2024/03/02 11:04:51 tb Exp $ */ | 1 | /* $OpenBSD: lhash.h,v 1.4 2024/03/02 11:11:11 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2023 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2023 Bob Beck <beck@openbsd.org> |
| 4 | * | 4 | * |
| @@ -27,6 +27,7 @@ | |||
| 27 | 27 | ||
| 28 | LCRYPTO_USED(lh_new); | 28 | LCRYPTO_USED(lh_new); |
| 29 | LCRYPTO_USED(lh_free); | 29 | LCRYPTO_USED(lh_free); |
| 30 | LCRYPTO_USED(lh_error); | ||
| 30 | LCRYPTO_USED(lh_insert); | 31 | LCRYPTO_USED(lh_insert); |
| 31 | LCRYPTO_USED(lh_delete); | 32 | LCRYPTO_USED(lh_delete); |
| 32 | LCRYPTO_USED(lh_retrieve); | 33 | LCRYPTO_USED(lh_retrieve); |
