From f8a3aa91cd87a84ea1b5a0a643571bafda3968c8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 11 Aug 2008 20:29:36 +0000 Subject: - Constantine Sapuntzakis filed bug report #2042430 (http://curl.haxx.se/bug/view.cgi?id=2042430) with a patch. "NTLM Windows SSPI code is not thread safe". This was due to libcurl using static variables to tell wether to load the necessary SSPI DLL, but now the loading has been moved to the more suitable curl_global_init() call. --- lib/http_ntlm.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/http_ntlm.h') diff --git a/lib/http_ntlm.h b/lib/http_ntlm.h index 40a0c9b5d..c5e73ede8 100644 --- a/lib/http_ntlm.h +++ b/lib/http_ntlm.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2005, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2008, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -44,6 +44,10 @@ void Curl_ntlm_cleanup(struct connectdata *conn); #define Curl_ntlm_cleanup(x) #endif +#ifdef USE_WINDOWS_SSPI +CURLcode Curl_ntlm_global_init(); +void Curl_ntlm_global_cleanup(); +#endif /* Flag bits definitions based on http://davenport.sourceforge.net/ntlm.html */ -- cgit v1.2.3