How to implement the NTLM authorization
-
Hello all, I'm writing a tool which must provide the function of sending data to some hosts in the internet via our company's http proxy. The proxy uses the NTLM authorization rule. I don't want to use the winHTTP API because they control socket transfer. I'd like to control it by myself. Who can tell me which API (except WinHttpSetCredentials()) may help me to realize the NTLM authorization? Thanks a lot
-
Hello all, I'm writing a tool which must provide the function of sending data to some hosts in the internet via our company's http proxy. The proxy uses the NTLM authorization rule. I don't want to use the winHTTP API because they control socket transfer. I'd like to control it by myself. Who can tell me which API (except WinHttpSetCredentials()) may help me to realize the NTLM authorization? Thanks a lot
The API you need for implementing security yourself is
InitializeSecurityContext
. I don't recall the full details myself, but I do remember that there's a good description in Programming Server-Side Applications for Windows[^].