#include <winpr/crt.h>
#include <winpr/synch.h>
#include <winpr/ssl.h>
+#include <winpr/thread.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#if (OPENSSL_VERSION_NUMBER < 0x10000000L)
-static unsigned long _winpr_openssl_id()
+static unsigned long _winpr_openssl_id(void)
{
return (unsigned long)GetCurrentThreadId();
}
free(dynlock);
}
-static BOOL _winpr_openssl_initialize_locking()
+static BOOL _winpr_openssl_initialize_locking(void)
{
int i, count;
return TRUE;
}
-static BOOL _winpr_openssl_cleanup_locking()
+static BOOL _winpr_openssl_cleanup_locking(void)
{
/* undo our static locking modifications */
if (flags & WINPR_SSL_INIT_ENABLE_LOCKING)
{
- if (!_winpr_openssl_initialize_locking(FALSE))
+ if (!_winpr_openssl_initialize_locking())
{
return FALSE;
}