- 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.
This commit is contained in:
Daniel Stenberg 2008-08-11 20:29:36 +00:00
parent 019bde82ce
commit f8a3aa91cd
5 changed files with 80 additions and 41 deletions

View file

@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, 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 */