Exemplo n.º 1
0
 private static SafeCtxtHandle GetSecContext(SafeCredHandle hCred, out SafeSecBufferDesc pOutput, SecBufferType type = SecBufferType.SECBUFFER_TOKEN, string target = null)
 {
     pOutput = new SafeSecBufferDesc(type);
     return(GetSecContext(hCred, pOutput, target));
 }
 public SspiDigestAuthorizationManager()
 {
     this.credHandle = Sspi.SafeAcquireCredentialsHandle(AuthSchemes.Digest.ToString(), CredentialUse.SECPKG_CRED_BOTH);
 }
Exemplo n.º 3
0
 private static SafeCredHandle AcqCredHandle(string secPkg = MICROSOFT_KERBEROS_NAME, SECPKG_CRED use = SECPKG_CRED.SECPKG_CRED_BOTH) => SafeCredHandle.Acquire(secPkg, use);