static void locking_function(int mode, int n, const char *file, int line) { assert((size_t) n < openssl_global_data.num_lock); static_assert(!offsetof(struct CRYPTO_dynlock_value, mutex), "The mutex must be the first field in struct CRYPTO_dynlock_value."); dyn_lock_function(mode, (struct CRYPTO_dynlock_value *) (openssl_global_data.lock + n), file, line); }
NOEXPORT void locking_callback(int mode, int type, const char *file, int line) { dyn_lock_function(mode, lock_cs+type, file, line); }