0

I cannot find what SSPI function should I have to call to get the type of protocol that Windows picked up after the AcquireCredentialsHandle() with Negotiate option... !?

Stef
  • 3,691
  • 6
  • 43
  • 58
  • How does kerberos and ntlm relate to Negotiate auth scheme? – leppie Apr 03 '14 at 09:10
  • The whole point of Negotiate is that it allows SSPI to negotiate either NTLM or Kerberos (see: http://msdn.microsoft.com/en-us/library/windows/desktop/aa378748(v=vs.85).aspx) – Len Holgate Apr 03 '14 at 14:18

1 Answers1

4

Once negotiation is complete you call QueryContextAttributes() on the negotiated context and specify SECPKG_ATTR_PACKAGE_INFO.

You will already have the negotiated attributes and context expiry details from the last call to InitializeSecurityContext() or AcceptSecurityContext()

Len Holgate
  • 21,282
  • 4
  • 45
  • 92