summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/err/err.h
diff options
context:
space:
mode:
authortb <>2024-03-02 10:30:48 +0000
committertb <>2024-03-02 10:30:48 +0000
commit695cb1c8837847976b081799d3e5a6efc8a10d82 (patch)
treea0232bd4bd01c367e0b424879a078e3cbac3f147 /src/lib/libcrypto/err/err.h
parent5a00ce7e0fdf4ebc1ab7bd8381c2bada8bf1b5c7 (diff)
downloadopenbsd-695cb1c8837847976b081799d3e5a6efc8a10d82.tar.gz
openbsd-695cb1c8837847976b081799d3e5a6efc8a10d82.tar.bz2
openbsd-695cb1c8837847976b081799d3e5a6efc8a10d82.zip
Remove ERR_get_state
The ERR_STATE struct is an unused implementation detail of the horrific error stack code. It is the last public consumer of CRYPTO_THREAD internals. Make this and its accessor internal so we can make the CRYPTO_THREAD struct opaque. ok jsing
Diffstat (limited to 'src/lib/libcrypto/err/err.h')
-rw-r--r--src/lib/libcrypto/err/err.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/lib/libcrypto/err/err.h b/src/lib/libcrypto/err/err.h
index d85de24cb1..e0b4354e49 100644
--- a/src/lib/libcrypto/err/err.h
+++ b/src/lib/libcrypto/err/err.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: err.h,v 1.31 2023/07/28 10:23:19 tb Exp $ */ 1/* $OpenBSD: err.h,v 1.32 2024/03/02 10:30:48 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 *
@@ -143,16 +143,6 @@ extern "C" {
143#define ERR_FLAG_MARK 0x01 143#define ERR_FLAG_MARK 0x01
144 144
145#define ERR_NUM_ERRORS 16 145#define ERR_NUM_ERRORS 16
146typedef struct err_state_st {
147 CRYPTO_THREADID tid;
148 int err_flags[ERR_NUM_ERRORS];
149 unsigned long err_buffer[ERR_NUM_ERRORS];
150 char *err_data[ERR_NUM_ERRORS];
151 int err_data_flags[ERR_NUM_ERRORS];
152 const char *err_file[ERR_NUM_ERRORS];
153 int err_line[ERR_NUM_ERRORS];
154 int top, bottom;
155} ERR_STATE;
156 146
157/* library */ 147/* library */
158#define ERR_LIB_NONE 1 148#define ERR_LIB_NONE 1
@@ -397,7 +387,6 @@ void ERR_free_strings(void);
397void ERR_remove_thread_state(const CRYPTO_THREADID *tid); 387void ERR_remove_thread_state(const CRYPTO_THREADID *tid);
398/* Wrapped in OPENSSL_NO_DEPRECATED in 0.9.8. Still used in 2023. */ 388/* Wrapped in OPENSSL_NO_DEPRECATED in 0.9.8. Still used in 2023. */
399void ERR_remove_state(unsigned long pid); 389void ERR_remove_state(unsigned long pid);
400ERR_STATE *ERR_get_state(void);
401 390
402int ERR_get_next_error_library(void); 391int ERR_get_next_error_library(void);
403 392