(int, int, PyTime) = InitializeSecurityContext(Credential, Context
, TargetName
, ContextReq
, TargetDataRep
, pInput
, NewContext
, pOutput
)
Creates a security context based on credentials created by AcquireCredentialsHandle
Parameters
Credential : PyCredHandle
A credentials handle as returned by win32security::AcquireCredentialsHandleContext : PyCtxtHandle
Use None on initial call, then handle returned in NewContext thereafterTargetName : str/unicode
Target of context, security package specific - Use None with NTLMContextReq : int
Combination of ISC_REQ_* flagsTargetDataRep : int
One of SECURITY_NATIVE_DREP,SECURITY_NETWORK_DREPpInput : PySecBufferDesc
Data buffer - use None initiallyNewContext : PyCtxtHandle
Uninitialized context handle to receive outputpOutput : PySecBufferDesc
Buffer that receives output data for subsequent callsReturn Value
Return value is a tuple of (return code, attribute flags, expiration time)