thread mutex routines for when we don't have APR_HAS_THREADS.
Submitted by: Justin Erenkrantz
Reviewed by: Aaron Bannert
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92061
13f79535-47bb-0310-9956-
ffa450edef68
ssl_init_SSLLibrary();
}
#endif
+#if APR_HAS_THREADS
ssl_util_thread_setup(s, p);
+#endif
if (mc->nInitCount == 1) {
ssl_pphrase_Handle(s, p);
ssl_init_TmpKeysHandle(SSL_TKP_GEN, s, p);
return mc;
}
+#if APR_HAS_THREADS
/*
* To ensure thread-safetyness in OpenSSL - work in progress
*/
}
}
-#if APR_HAS_THREADS
static unsigned long ssl_util_thr_id(void)
{
return (unsigned long) apr_os_thread_current();
}
-#endif
static apr_status_t ssl_util_thread_cleanup(void *data)
{
apr_thread_mutex_create(&(lock_cs[i]), APR_THREAD_MUTEX_DEFAULT, p);
}
-#if APR_HAS_THREADS
CRYPTO_set_id_callback(ssl_util_thr_id);
-#endif
CRYPTO_set_locking_callback(ssl_util_thr_lock);
apr_pool_cleanup_null);
}
+#endif