diff options
Diffstat (limited to 'src/lib/libcrypto/man/ERR_remove_state.3')
-rw-r--r-- | src/lib/libcrypto/man/ERR_remove_state.3 | 58 |
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 | ||
15 | Deprecated: | ||
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 | ||
23 | frees the error queue associated with thread | ||
24 | .Fa tid . | ||
25 | If | ||
26 | .Fa tid | ||
27 | is | ||
28 | .Dv NULL , | ||
29 | the current thread will have its error queue removed. | ||
30 | .Pp | ||
31 | Since error queue data structures are allocated automatically for new | ||
32 | threads, they must be freed when threads are terminated in order to | ||
33 | avoid memory leaks. | ||
34 | .Pp | ||
35 | .Fn ERR_remove_state | ||
36 | is deprecated and has been replaced by | ||
37 | .Fn ERR_remove_thread_state . | ||
38 | Since threads in OpenSSL are no longer identified by unsigned long | ||
39 | values, any argument to this function is ignored. | ||
40 | Calling | ||
41 | .Fn ERR_remove_state | ||
42 | is equivalent to | ||
43 | .Fn ERR_remove_thread_state NULL . | ||
44 | .Sh RETURN VALUE | ||
45 | .Fn ERR_remove_thread_state | ||
46 | and | ||
47 | .Fn ERR_remove_state | ||
48 | return no value. | ||
49 | .Sh SEE ALSO | ||
50 | .Xr ERR 3 | ||
51 | .Sh HISTORY | ||
52 | .Fn ERR_remove_state | ||
53 | is available in all versions of SSLeay and OpenSSL. | ||
54 | It was deprecated in OpenSSL 1.0.0 when | ||
55 | .Fn ERR_remove_thread_state | ||
56 | was introduced and thread IDs were introduced to identify threads | ||
57 | instead of | ||
58 | .Vt unsigned long . | ||