summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/CRYPTO_set_locking_callback.3
diff options
context:
space:
mode:
authorjmc <>2016-11-10 14:34:18 +0000
committerjmc <>2016-11-10 14:34:18 +0000
commitf09d61b594eba5f8f4ebf834ec2f18203636bcf5 (patch)
tree8e5a7bb432fb01e6ee508c5a7327eb41f4a0c92a /src/lib/libcrypto/man/CRYPTO_set_locking_callback.3
parente19a4e15d73261c4eaf9f544789343e0ae570455 (diff)
downloadopenbsd-f09d61b594eba5f8f4ebf834ec2f18203636bcf5.tar.gz
openbsd-f09d61b594eba5f8f4ebf834ec2f18203636bcf5.tar.bz2
openbsd-f09d61b594eba5f8f4ebf834ec2f18203636bcf5.zip
various cleanup;
Diffstat (limited to 'src/lib/libcrypto/man/CRYPTO_set_locking_callback.3')
-rw-r--r--src/lib/libcrypto/man/CRYPTO_set_locking_callback.329
1 files changed, 14 insertions, 15 deletions
diff --git a/src/lib/libcrypto/man/CRYPTO_set_locking_callback.3 b/src/lib/libcrypto/man/CRYPTO_set_locking_callback.3
index eb99f30d23..6fdb68c005 100644
--- a/src/lib/libcrypto/man/CRYPTO_set_locking_callback.3
+++ b/src/lib/libcrypto/man/CRYPTO_set_locking_callback.3
@@ -1,16 +1,17 @@
1.\" $OpenBSD: CRYPTO_set_locking_callback.3,v 1.3 2016/11/06 15:52:50 jmc Exp $ 1.\" $OpenBSD: CRYPTO_set_locking_callback.3,v 1.4 2016/11/10 14:34:18 jmc Exp $
2.\" 2.\"
3.Dd $Mdocdate: November 6 2016 $ 3.Dd $Mdocdate: November 10 2016 $
4.Dt CRYPTO_SET_LOCKING_CALLBACK 3 4.Dt CRYPTO_SET_LOCKING_CALLBACK 3
5.Os 5.Os
6.Sh NAME 6.Sh NAME
7.Nm CRYPTO_THREADID_set_numeric ,
8.Nm CRYPTO_THREADID_set_pointer ,
7.Nm CRYPTO_THREADID_set_callback , 9.Nm CRYPTO_THREADID_set_callback ,
8.Nm CRYPTO_THREADID_get_callback , 10.Nm CRYPTO_THREADID_get_callback ,
9.Nm CRYPTO_THREADID_current , 11.Nm CRYPTO_THREADID_current ,
10.Nm CRYPTO_THREADID_cmp , 12.Nm CRYPTO_THREADID_cmp ,
11.Nm CRYPTO_THREADID_cpy , 13.Nm CRYPTO_THREADID_cpy ,
12.Nm CRYPTO_THREADID_hash , 14.Nm CRYPTO_THREADID_hash ,
13.Nm CRYPTO_set_locking_callback ,
14.Nm CRYPTO_num_locks , 15.Nm CRYPTO_num_locks ,
15.Nm CRYPTO_set_dynlock_create_callback , 16.Nm CRYPTO_set_dynlock_create_callback ,
16.Nm CRYPTO_set_dynlock_lock_callback , 17.Nm CRYPTO_set_dynlock_lock_callback ,
@@ -22,9 +23,7 @@
22.Nm CRYPTO_w_unlock , 23.Nm CRYPTO_w_unlock ,
23.Nm CRYPTO_r_lock , 24.Nm CRYPTO_r_lock ,
24.Nm CRYPTO_r_unlock , 25.Nm CRYPTO_r_unlock ,
25.Nm CRYPTO_add , 26.Nm CRYPTO_add
26.Nm CRYPTO_add_lock ,
27.Nm CRYPTO_set_id_callback
28.Nd OpenSSL thread support 27.Nd OpenSSL thread support
29.Sh SYNOPSIS 28.Sh SYNOPSIS
30.In openssl/crypto.h 29.In openssl/crypto.h
@@ -211,7 +210,7 @@ value even though it is not as wide as the platform's true thread
211IDs. 210IDs.
212.El 211.El
213.Pp 212.Pp
214Additionally, OpenSSL supports dynamic locks, and sometimes, some parts 213Additionally, OpenSSL supports dynamic locks and, sometimes, some parts
215of OpenSSL need it for better performance. 214of OpenSSL need it for better performance.
216To enable this, the following is required: 215To enable this, the following is required:
217.Bl -bullet 216.Bl -bullet
@@ -286,15 +285,7 @@ CRYPTO_UNLOCK 0x02
286CRYPTO_READ 0x04 285CRYPTO_READ 0x04
287CRYPTO_WRITE 0x08 286CRYPTO_WRITE 0x08
288.Ed 287.Ed
289.Sh RETURN VALUES
290.Fn CRYPTO_num_locks
291returns the required number of locks.
292.Pp
293.Fn CRYPTO_get_new_dynlockid
294returns the index to the newly created lock.
295.Pp 288.Pp
296The other functions return no values.
297.Sh NOTES
298You can find out if OpenSSL was configured with thread support: 289You can find out if OpenSSL was configured with thread support:
299.Bd -literal -offset indent 290.Bd -literal -offset indent
300#define OPENSSL_THREAD_DEFINES 291#define OPENSSL_THREAD_DEFINES
@@ -308,6 +299,14 @@ You can find out if OpenSSL was configured with thread support:
308.Pp 299.Pp
309Also, dynamic locks are currently not used internally by OpenSSL, but 300Also, dynamic locks are currently not used internally by OpenSSL, but
310may do so in the future. 301may do so in the future.
302.Sh RETURN VALUES
303.Fn CRYPTO_num_locks
304returns the required number of locks.
305.Pp
306.Fn CRYPTO_get_new_dynlockid
307returns the index to the newly created lock.
308.Pp
309The other functions return no values.
311.Sh EXAMPLES 310.Sh EXAMPLES
312.Pa crypto/threads/mttest.c 311.Pa crypto/threads/mttest.c
313shows examples of the callback functions on Solaris, Irix and Win32. 312shows examples of the callback functions on Solaris, Irix and Win32.