mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-28 05:39:07 +00:00
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:
parent
62106208ed
commit
c69064b336
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user