From 695cb1c8837847976b081799d3e5a6efc8a10d82 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 2 Mar 2024 10:30:48 +0000 Subject: 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 --- src/lib/libcrypto/err/err.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/lib/libcrypto/err/err.h') 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 @@ -/* $OpenBSD: err.h,v 1.31 2023/07/28 10:23:19 tb Exp $ */ +/* $OpenBSD: err.h,v 1.32 2024/03/02 10:30:48 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -143,16 +143,6 @@ extern "C" { #define ERR_FLAG_MARK 0x01 #define ERR_NUM_ERRORS 16 -typedef struct err_state_st { - CRYPTO_THREADID tid; - int err_flags[ERR_NUM_ERRORS]; - unsigned long err_buffer[ERR_NUM_ERRORS]; - char *err_data[ERR_NUM_ERRORS]; - int err_data_flags[ERR_NUM_ERRORS]; - const char *err_file[ERR_NUM_ERRORS]; - int err_line[ERR_NUM_ERRORS]; - int top, bottom; -} ERR_STATE; /* library */ #define ERR_LIB_NONE 1 @@ -397,7 +387,6 @@ void ERR_free_strings(void); void ERR_remove_thread_state(const CRYPTO_THREADID *tid); /* Wrapped in OPENSSL_NO_DEPRECATED in 0.9.8. Still used in 2023. */ void ERR_remove_state(unsigned long pid); -ERR_STATE *ERR_get_state(void); int ERR_get_next_error_library(void); -- cgit v1.2.3-55-g6feb