search for: openssl_malloc

Displaying 2 results from an estimated 2 matches for "openssl_malloc".

2001 Oct 20
8
Recent openssl is required for OPENSSL_free [Re: Please test snapshots for 3.0 release] (fwd)
No response yet, so resending. -- Pekka Savola "Tell me of difficulties surmounted, Netcore Oy not those you stumble over and fall" Systems. Networks. Security. -- Robert Jordan: A Crown of Swords ---------- Forwarded message ---------- Date: Fri, 12 Oct 2001 09:44:54 +0300 (EEST) From: Pekka Savola <pekkas at netcore.fi> To: Damien Miller
2012 Mar 11
2
[patch] Threading support in ssh-agent
...; +#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_malloc(CRYPTO_num_locks() * sizeof(long)); + for (i=0; i<CRYPTO_num_locks(); i++) + { + lock_count[i]=0; + pthread_mutex_init(&(lock_cs[i]),NULL); + } + + CRYPTO_set_id_callback((unsigned long (*)())pthreads_thread_id);...