diff options
author | Richard Levitte <levitte@openssl.org> | 2000-06-19 16:38:27 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-06-19 16:38:27 +0000 |
commit | 55b7688ef51fc7d150e6178c3d763c37d5b82cb4 (patch) | |
tree | 9a70f44b4050a8290007991becf5c662de0303f4 /crypto/crypto.h | |
parent | 3b211619224a6d1b3a777fab9aefe742fa845cbb (diff) |
Add the missing callback pointer handling functions.
Also, make sure empty slots of the dynamic lock stack are used.
Actually, I'm not really sure this is the right thing to do, and may
remove it, with an endlessly growing stack as result...
Diffstat (limited to 'crypto/crypto.h')
-rw-r--r-- | crypto/crypto.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/crypto/crypto.h b/crypto/crypto.h index 846be386c1..bda2f56df4 100644 --- a/crypto/crypto.h +++ b/crypto/crypto.h @@ -311,17 +311,16 @@ unsigned long CRYPTO_thread_id(void); const char *CRYPTO_get_lock_name(int type); int CRYPTO_add_lock(int *pointer,int amount,int type, const char *file, int line); -void CRYPTO_set_dynlock_create_callback(struct CRYPTO_dynlock_value *(*dyn_create_function) - (char *file, int line)); -void CRYPTO_set_dynlock_lock_callback(void (*dyn_lock_function) - (int mode, struct CRYPTO_dynlock_value *l, - const char *file, int line)); -void CRYPTO_set_dynlock_destroy_callback(void (*dyn_destroy_function) - (struct CRYPTO_dynlock_value *l, const char *file, int line)); -void CRYPTO_set_dynlock_size(int dynlock_size); + int CRYPTO_get_new_dynlockid(void); void CRYPTO_destroy_dynlockid(int i); struct CRYPTO_dynlock_value *CRYPTO_get_dynlock_value(int i); +void CRYPTO_set_dynlock_create_callback(struct CRYPTO_dynlock_value *(*dyn_create_function)(const char *file, int line)); +void CRYPTO_set_dynlock_lock_callback(void (*dyn_lock_function)(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line)); +void CRYPTO_set_dynlock_destroy_callback(void (*dyn_destroy_function)(struct CRYPTO_dynlock_value *l, const char *file, int line)); +struct CRYPTO_dynlock_value *(*CRYPTO_get_dynlock_create_callback(void))(const char *file,int line); +void (*CRYPTO_get_dynlock_lock_callback(void))(int mode, struct CRYPTO_dynlock_value *l, const char *file,int line); +void (*CRYPTO_get_dynlock_destroy_callback(void))(struct CRYPTO_dynlock_value *l, const char *file,int line); /* CRYPTO_set_mem_functions includes CRYPTO_set_locked_mem_functions -- * call the latter last if you need different functions */ |