~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to lib/curl_sspi.c

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2010-10-18 11:13:17 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20101018111317-9rkas34ecwtq0upn
Tags: upstream-7.21.2
ImportĀ upstreamĀ versionĀ 7.21.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#include "memdebug.h"
37
37
 
38
38
 
 
39
/* We use our own typedef here since some headers might lack these */
 
40
typedef PSecurityFunctionTableA (APIENTRY *INITSECURITYINTERFACE_FN_A)(VOID);
 
41
 
39
42
/* Handle of security.dll or secur32.dll, depending on Windows version */
40
43
HMODULE s_hSecDll = NULL;
41
44
 
59
62
Curl_sspi_global_init(void)
60
63
{
61
64
  OSVERSIONINFO osver;
62
 
  INIT_SECURITY_INTERFACE_A pInitSecurityInterface;
 
65
  INITSECURITYINTERFACE_FN_A pInitSecurityInterface;
63
66
 
64
67
  /* If security interface is not yet initialized try to do this */
65
68
  if(s_hSecDll == NULL) {
84
87
      return CURLE_FAILED_INIT;
85
88
 
86
89
    /* Get address of the InitSecurityInterfaceA function from the SSPI dll */
87
 
    pInitSecurityInterface = (INIT_SECURITY_INTERFACE_A)
 
90
    pInitSecurityInterface = (INITSECURITYINTERFACE_FN_A)
88
91
      GetProcAddress(s_hSecDll, "InitSecurityInterfaceA");
89
92
    if(! pInitSecurityInterface)
90
93
      return CURLE_FAILED_INIT;