Skip to content

Commit 336ea79

Browse files
authored
Disable user mapper for SslStream on Windows (#80886)
1 parent a734aa4 commit 336ea79

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/libraries/System.Net.Security/src/System/Net/Security/SslStreamPal.Windows.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,9 @@ public static unsafe SafeFreeCredentials AcquireCredentialsHandleSchannelCred(Ss
260260
else
261261
{
262262
direction = Interop.SspiCli.CredentialUse.SECPKG_CRED_INBOUND;
263-
flags = Interop.SspiCli.SCHANNEL_CRED.Flags.SCH_SEND_AUX_RECORD;
264-
265-
if (authOptions.CertificateContext?.Trust?._sendTrustInHandshake == true)
266-
{
267-
flags |= Interop.SspiCli.SCHANNEL_CRED.Flags.SCH_CRED_NO_SYSTEM_MAPPER;
268-
}
263+
flags =
264+
Interop.SspiCli.SCHANNEL_CRED.Flags.SCH_SEND_AUX_RECORD |
265+
Interop.SspiCli.SCHANNEL_CRED.Flags.SCH_CRED_NO_SYSTEM_MAPPER;
269266
}
270267

271268
EncryptionPolicy policy = authOptions.EncryptionPolicy;

0 commit comments

Comments
 (0)