ERR_REMOVE_STATE(3SSL)
π«§ ERR_REMOVE_STATE(3SSL) β bestie, these are DEPRECATED π«§
okay so real talk: this is a page from the 3SSL manual (that's the OpenSSL one, iykyk), and the entire vibe is "these functions are old, please stop using them." not me being dramatic β the original literally puts DEPRECATED in the NAME section. π
β¨ NAME β¨
ERR_remove_thread_state, ERR_remove_state β DEPRECATED. that's it. that's the name. they're deprecated bestie, that's the whole personality. π
πΈ SYNOPSIS πΈ
okay so here's the thing, there are two functions and both of them are on the deprecated list. not me reading the fine print π
first one: deprecated since OpenSSL 1.0.0, and you can hide it entirely by defining OPENSSL_API_COMPAT with a suitable version value, see openssl_user_macros(7):
void ERR_remove_state(unsigned long tid);
second one: deprecated since OpenSSL 1.1.0, and same deal β it can be hidden entirely by defining OPENSSL_API_COMPAT with a suitable version value, see openssl_user_macros(7):
void ERR_remove_thread_state(void *tid);
π¦ DESCRIPTION π¦
so what did they do? ERR_remove_state() frees the error queue associated with the specified thread, identified by tid. yes, bestie, the whole queue, gone, poof. π§
and ERR_remove_thread_state()? literally the same thing, except the identifier is an opaque pointer. that's the plot twist. that's it. π
π RETURN VALUES π
ERR_remove_state() and ERR_remove_thread_state() return no value. nothing. void. they give you nothing and honestly we love that for them π«Ά
π SEE ALSO π
LOPENSSL_init_crypto(3)
(i'm not touching that, that's exactly how it's written, character for character, no cap π₯)
π HISTORY π
ERR_remove_state()was deprecated in OpenSSL 1.0.0ERR_remove_thread_state()was deprecated in OpenSSL 1.1.0
and β direct quote energy β these functions should not be used. periodt. π
π COPYRIGHT π
Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
π«Ά friendly reminder from your girl: deprecated means deprecated, bestie. don't say i didn't warn you β¨
okay that's the whole page!! mwah π sign-off time: this was 3.5.7, dated 2026-06-09, and it's the ERR_REMOVE_STATE(3SSL) situation in full β go forth and not use these functions π¦β
π¦ where this page comes from
- debian trixie: libssl-doc 3.5.7-1~deb13u2 Β· Apache-2.0
- debian trixie: libssl-doc 3.5.7-1~deb13u3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms