summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_policy.c
diff options
context:
space:
mode:
authortb <>2024-03-02 11:11:11 +0000
committertb <>2024-03-02 11:11:11 +0000
commit26367add3db68a3e89bda58a3c85174507f8e71a (patch)
tree865633fee7fa46f45fa7bee8495692a2bf76544f /src/lib/libcrypto/x509/x509_policy.c
parent792421b3f220abcbd1405485edc9bf6b39485769 (diff)
downloadopenbsd-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/x509/x509_policy.c')
-rw-r--r--src/lib/libcrypto/x509/x509_policy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_policy.c b/src/lib/libcrypto/x509/x509_policy.c
index 73f7154f51..ec9be8d927 100644
--- a/src/lib/libcrypto/x509/x509_policy.c
+++ b/src/lib/libcrypto/x509/x509_policy.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_policy.c,v 1.25 2023/04/28 16:30:14 tb Exp $ */ 1/* $OpenBSD: x509_policy.c,v 1.26 2024/03/02 11:11:11 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2022, Google Inc. 3 * Copyright (c) 2022, Google Inc.
4 * 4 *
@@ -23,6 +23,7 @@
23#include <openssl/x509.h> 23#include <openssl/x509.h>
24#include <openssl/x509v3.h> 24#include <openssl/x509v3.h>
25 25
26#include "stack_local.h"
26#include "x509_internal.h" 27#include "x509_internal.h"
27#include "x509_local.h" 28#include "x509_local.h"
28 29