1ERR_remove_state(3) OpenSSL ERR_remove_state(3)
2
3
4
6 ERR_remove_thread_state, ERR_remove_state - free a thread's error queue
7
9 #include <openssl/err.h>
10
11 void ERR_remove_thread_state(const CRYPTO_THREADID *tid);
12
13 Deprecated:
14
15 void ERR_remove_state(unsigned long pid);
16
18 ERR_remove_thread_state() frees the error queue associated with thread
19 tid. If tid == NULL, the current thread will have its error queue
20 removed.
21
22 Since error queue data structures are allocated automatically for new
23 threads, they must be freed when threads are terminated in order to
24 avoid memory leaks.
25
26 ERR_remove_state is deprecated and has been replaced by
27 ERR_remove_thread_state. Since threads in OpenSSL are no longer
28 identified by unsigned long values any argument to this function is
29 ignored. Calling ERR_remove_state is equivalent to
30 ERR_remove_thread_state(NULL).
31
33 ERR_remove_thread_state and ERR_remove_state() return no value.
34
36 err(3)
37
39 ERR_remove_state() is available in all versions of SSLeay and OpenSSL.
40 It was deprecated in OpenSSL 1.0.0 when ERR_remove_thread_state was
41 introduced and thread IDs were introduced to identify threads instead
42 of 'unsigned long'.
43
44
45
461.0.2o 2018-03-27 ERR_remove_state(3)