Skip to content

Commit

Permalink
Disable user mapper for SslStream on Windows (TLS 1.3) (#100833)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzikm authored Apr 9, 2024
1 parent f54c778 commit ae184d5
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 ae184d5

Please sign in to comment.