search for: lock_c

Displaying 1 result from an estimated 1 matches for "lock_c".

Did you mean: lock_r
2012 Mar 11
2
[patch] Threading support in ssh-agent
...including the GNU Public Licence.] + */ + +#include "includes.h" + +#include "ssh-openssl-thread-locking.h" + +#include <openssl/crypto.h> + +#include <stdlib.h> +#include <string.h> +#include <errno.h> + +#ifdef HAVE_LIBPTHREAD + +static pthread_mutex_t *lock_cs; +static long *lock_count; + +void pthreads_locking_callback(int mode, int type, char *file, int line); +unsigned long pthreads_thread_id(void); + +void openssl_thread_locks_setup(void) + { + int i; + + lock_cs=OPENSSL_malloc(CRYPTO_num_locks() * sizeof(pthread_mutex_t)); + lock_count=OPENSSL_mall...