win32security.AcceptSecurityContext

(int, long, int) = AcceptSecurityContext(Credential, Context , pInput , ContextReq , TargetDataRep , NewContext , pOutput )

Builds security context between server and client

Parameters

Credential : PyCredHandle

Handle to server's credentials (see AcquireCredentialsHandle)

Context : PyCtxtHandle

Use None on initial call, then handle returned in NewContext thereafter

pInput : PySecBufferDesc

Data buffer received from client

ContextReq : int

Combination of ASC_REQ_* flags

TargetDataRep : int

One of SECURITY_NATIVE_DREP,SECURITY_NETWORK_DREP

NewContext : PyCtxtHandle

Uninitialized context handle to receive output

pOutput : PySecBufferDesc

Buffer that receives output data, to be passed back as pInput on subsequent calls

Return Value

Returns a tuple of (return code, context attributes, context expiration time)