The dynamic thread API changed, and so does the documentation.
This commit is contained in:
parent
95a9fea711
commit
3b21161922
@ -17,14 +17,15 @@ CRYPTO_set_locking_callback, CRYPTO_set_id_callback - OpenSSL thread support
|
|||||||
|
|
||||||
|
|
||||||
/* struct CRYPTO_dynlock_value needs to be defined by the user */
|
/* struct CRYPTO_dynlock_value needs to be defined by the user */
|
||||||
typedef struct CRYPTO_dynlock_value CRYPTO_dynlock;
|
struct CRYPTO_dynlock_value;
|
||||||
|
|
||||||
void CRYPTO_set_dynlock_create_callback(CRYPTO_dynlock *(*dyn_create_function)
|
void CRYPTO_set_dynlock_create_callback(struct CRYPTO_dynlock_value *
|
||||||
(char *file, int line));
|
(*dyn_create_function)(char *file, int line));
|
||||||
void CRYPTO_set_dynlock_lock_callback(void (*dyn_lock_function)
|
void CRYPTO_set_dynlock_lock_callback(void (*dyn_lock_function)
|
||||||
(int mode, CRYPTO_dynlock *l, const char *file, int line));
|
(int mode, struct CRYPTO_dynlock_value *l,
|
||||||
|
const char *file, int line));
|
||||||
void CRYPTO_set_dynlock_destroy_callback(void (*dyn_destroy_function)
|
void CRYPTO_set_dynlock_destroy_callback(void (*dyn_destroy_function)
|
||||||
(CRYPTO_dynlock *l, const char *file, int line));
|
(struct CRYPTO_dynlock_value *l, const char *file, int line));
|
||||||
|
|
||||||
int CRYPTO_get_new_dynlockid(void);
|
int CRYPTO_get_new_dynlockid(void);
|
||||||
|
|
||||||
@ -115,6 +116,9 @@ You can find out if OpenSSL was configured with thread support:
|
|||||||
// no thread support
|
// no thread support
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Also, dynamic locks are currently not used internally by OpenSSL, but
|
||||||
|
may do so in the future.
|
||||||
|
|
||||||
=head1 EXAMPLES
|
=head1 EXAMPLES
|
||||||
|
|
||||||
B<crypto/threads/mttest.c> shows examples of the callback functions on
|
B<crypto/threads/mttest.c> shows examples of the callback functions on
|
||||||
|
Loading…
x
Reference in New Issue
Block a user