Loading lib/curl_sspi.c +8 −13 Original line number Diff line number Diff line Loading @@ -35,7 +35,6 @@ /* The last #include file should be: */ #include "memdebug.h" /* We use our own typedef here since some headers might lack these */ typedef PSecurityFunctionTableA (APIENTRY *INITSECURITYINTERFACE_FN_A)(VOID); Loading @@ -45,7 +44,6 @@ HMODULE s_hSecDll = NULL; /* Pointer to SSPI dispatch table */ PSecurityFunctionTableA s_pSecFn = NULL; /* * Curl_sspi_global_init() * Loading @@ -58,15 +56,13 @@ PSecurityFunctionTableA s_pSecFn = NULL; * called through the Security Service Provider Interface dispatch table. */ CURLcode Curl_sspi_global_init(void) CURLcode Curl_sspi_global_init(void) { OSVERSIONINFO osver; INITSECURITYINTERFACE_FN_A pInitSecurityInterface; /* If security interface is not yet initialized try to do this */ if(s_hSecDll == NULL) { if(!s_hSecDll) { /* Find out Windows version */ memset(&osver, 0, sizeof(osver)); osver.dwOSVersionInfoSize = sizeof(osver); Loading Loading @@ -96,8 +92,8 @@ Curl_sspi_global_init(void) s_pSecFn = pInitSecurityInterface(); if(!s_pSecFn) return CURLE_FAILED_INIT; } return CURLE_OK; } Loading Loading @@ -170,8 +166,7 @@ CURLcode Curl_sspi_version(int *major, int *minor, int *build, int *special) * This deinitializes the Security Service Provider Interface from libcurl. */ void Curl_sspi_global_cleanup(void) void Curl_sspi_global_cleanup(void) { if(s_hSecDll) { FreeLibrary(s_hSecDll); Loading Loading
lib/curl_sspi.c +8 −13 Original line number Diff line number Diff line Loading @@ -35,7 +35,6 @@ /* The last #include file should be: */ #include "memdebug.h" /* We use our own typedef here since some headers might lack these */ typedef PSecurityFunctionTableA (APIENTRY *INITSECURITYINTERFACE_FN_A)(VOID); Loading @@ -45,7 +44,6 @@ HMODULE s_hSecDll = NULL; /* Pointer to SSPI dispatch table */ PSecurityFunctionTableA s_pSecFn = NULL; /* * Curl_sspi_global_init() * Loading @@ -58,15 +56,13 @@ PSecurityFunctionTableA s_pSecFn = NULL; * called through the Security Service Provider Interface dispatch table. */ CURLcode Curl_sspi_global_init(void) CURLcode Curl_sspi_global_init(void) { OSVERSIONINFO osver; INITSECURITYINTERFACE_FN_A pInitSecurityInterface; /* If security interface is not yet initialized try to do this */ if(s_hSecDll == NULL) { if(!s_hSecDll) { /* Find out Windows version */ memset(&osver, 0, sizeof(osver)); osver.dwOSVersionInfoSize = sizeof(osver); Loading Loading @@ -96,8 +92,8 @@ Curl_sspi_global_init(void) s_pSecFn = pInitSecurityInterface(); if(!s_pSecFn) return CURLE_FAILED_INIT; } return CURLE_OK; } Loading Loading @@ -170,8 +166,7 @@ CURLcode Curl_sspi_version(int *major, int *minor, int *build, int *special) * This deinitializes the Security Service Provider Interface from libcurl. */ void Curl_sspi_global_cleanup(void) void Curl_sspi_global_cleanup(void) { if(s_hSecDll) { FreeLibrary(s_hSecDll); Loading