Move locking and thread ID functions into new files lock.c and thr_id.c,

redirect locking to minimal FIPS_lock() function where required.
This commit is contained in:
Dr. Stephen Henson
2011-01-27 14:27:24 +00:00
parent a27de7b7fd
commit ad6019d6c0
6 changed files with 783 additions and 539 deletions

View File

@@ -101,7 +101,7 @@ static void (*free_locked_func)(void *) = free;
/* may be changed as long as 'allow_customize_debug' is set */
/* XXX use correct function pointer types */
#ifdef CRYPTO_MDEBUG
#if defined(CRYPTO_MDEBUG) && !defined(OPENSSL_FIPSCANISTER)
/* use default functions from mem_dbg.c */
static void (*malloc_debug_func)(void *,int,const char *,int,int)
= CRYPTO_dbg_malloc;