HTTPCLIENT-1560: Request mutual auth in WinHttpClient

Contributed by Michael Osipov <michaelo at apache.org>

Removed ISC_REQ_CONNECTION because it is already set
by default. Added ISC_REQ_MUTUAL_AUTH which is also
required by ISC_REQ_DELEGATE.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1630125 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2014-10-08 14:42:23 +00:00
parent 62106208ed
commit c69064b336

View File

@ -275,7 +275,7 @@ String getToken(
sppicontext = new CtxtHandle();
final int rc = Secur32.INSTANCE.InitializeSecurityContext(clientCred,
continueCtx, targetName, Sspi.ISC_REQ_CONNECTION | Sspi.ISC_REQ_DELEGATE, 0,
continueCtx, targetName, Sspi.ISC_REQ_DELEGATE | Sspi.ISC_REQ_MUTUAL_AUTH, 0,
Sspi.SECURITY_NATIVE_DREP, continueToken, 0, sppicontext, token,
attr, null);
switch (rc) {