summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/ERR_remove_state.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/ERR_remove_state.3')
-rw-r--r--src/lib/libcrypto/man/ERR_remove_state.358
1 files changed, 58 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/ERR_remove_state.3 b/src/lib/libcrypto/man/ERR_remove_state.3
new file mode 100644
index 0000000000..c15779edfc
--- /dev/null
+++ b/src/lib/libcrypto/man/ERR_remove_state.3
@@ -0,0 +1,58 @@
1.Dd $Mdocdate: November 2 2016 $
2.Dt ERR_REMOVE_STATE 3
3.Os
4.Sh NAME
5.Nm ERR_remove_thread_state ,
6.Nm ERR_remove_state
7.Nd free a thread's OpenSSL error queue
8.Sh SYNOPSIS
9.In openssl/err.h
10.Ft void
11.Fo ERR_remove_thread_state
12.Fa "const CRYPTO_THREADID *tid"
13.Fc
14.Pp
15Deprecated:
16.Pp
17.Ft void
18.Fo ERR_remove_state
19.Fa "unsigned long pid"
20.Fc
21.Sh DESCRIPTION
22.Fn ERR_remove_thread_state
23frees the error queue associated with thread
24.Fa tid .
25If
26.Fa tid
27is
28.Dv NULL ,
29the current thread will have its error queue removed.
30.Pp
31Since error queue data structures are allocated automatically for new
32threads, they must be freed when threads are terminated in order to
33avoid memory leaks.
34.Pp
35.Fn ERR_remove_state
36is deprecated and has been replaced by
37.Fn ERR_remove_thread_state .
38Since threads in OpenSSL are no longer identified by unsigned long
39values, any argument to this function is ignored.
40Calling
41.Fn ERR_remove_state
42is equivalent to
43.Fn ERR_remove_thread_state NULL .
44.Sh RETURN VALUE
45.Fn ERR_remove_thread_state
46and
47.Fn ERR_remove_state
48return no value.
49.Sh SEE ALSO
50.Xr ERR 3
51.Sh HISTORY
52.Fn ERR_remove_state
53is available in all versions of SSLeay and OpenSSL.
54It was deprecated in OpenSSL 1.0.0 when
55.Fn ERR_remove_thread_state
56was introduced and thread IDs were introduced to identify threads
57instead of
58.Vt unsigned long .