Skip to content

Commit

Permalink
Disable user mapper for SslStream on Windows (TLS 1.3) (dotnet#100833)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzikm authored and matouskozak committed Apr 30, 2024
1 parent 90795f5 commit cff5a20
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,9 @@ public static unsafe SafeFreeCredentials AcquireCredentialsHandleSchCredentials(
if (isServer)
{
direction = Interop.SspiCli.CredentialUse.SECPKG_CRED_INBOUND;
flags = Interop.SspiCli.SCH_CREDENTIALS.Flags.SCH_SEND_AUX_RECORD;
if (authOptions.CertificateContext?.Trust?._sendTrustInHandshake == true)
{
flags |= Interop.SspiCli.SCH_CREDENTIALS.Flags.SCH_CRED_NO_SYSTEM_MAPPER;
}
flags =
Interop.SspiCli.SCH_CREDENTIALS.Flags.SCH_SEND_AUX_RECORD |
Interop.SspiCli.SCH_CREDENTIALS.Flags.SCH_CRED_NO_SYSTEM_MAPPER;
if (!allowTlsResume)
{
// Works only on server
Expand Down

0 comments on commit cff5a20

Please sign in to comment.