diff --git a/src/libraries/Common/src/Interop/Windows/SChannel/Interop.SECURITY_STATUS.cs b/src/libraries/Common/src/Interop/Windows/SChannel/Interop.SECURITY_STATUS.cs index 17fe421cb5aff..67370f9587fa0 100644 --- a/src/libraries/Common/src/Interop/Windows/SChannel/Interop.SECURITY_STATUS.cs +++ b/src/libraries/Common/src/Interop/Windows/SChannel/Interop.SECURITY_STATUS.cs @@ -33,6 +33,7 @@ internal enum SECURITY_STATUS MessageAltered = unchecked((int)0x8009030F), OutOfSequence = unchecked((int)0x80090310), NoAuthenticatingAuthority = unchecked((int)0x80090311), + ContextExpiredError = unchecked((int)0x80090317), IncompleteMessage = unchecked((int)0x80090318), IncompleteCredentials = unchecked((int)0x80090320), BufferNotEnough = unchecked((int)0x80090321), diff --git a/src/libraries/Common/src/System/Net/SecurityStatusAdapterPal.Windows.cs b/src/libraries/Common/src/System/Net/SecurityStatusAdapterPal.Windows.cs index f804caddbd01c..a6b4e4115d48f 100644 --- a/src/libraries/Common/src/System/Net/SecurityStatusAdapterPal.Windows.cs +++ b/src/libraries/Common/src/System/Net/SecurityStatusAdapterPal.Windows.cs @@ -9,7 +9,7 @@ namespace System.Net { internal static class SecurityStatusAdapterPal { - private const int StatusDictionarySize = 44; + private const int StatusDictionarySize = 45; #if DEBUG static SecurityStatusAdapterPal() @@ -31,6 +31,7 @@ static SecurityStatusAdapterPal() { Interop.SECURITY_STATUS.CompAndContinue, SecurityStatusPalErrorCode.CompAndContinue }, { Interop.SECURITY_STATUS.CompleteNeeded, SecurityStatusPalErrorCode.CompleteNeeded }, { Interop.SECURITY_STATUS.ContextExpired, SecurityStatusPalErrorCode.ContextExpired }, + { Interop.SECURITY_STATUS.ContextExpiredError, SecurityStatusPalErrorCode.ContextExpiredError }, { Interop.SECURITY_STATUS.ContinueNeeded, SecurityStatusPalErrorCode.ContinueNeeded }, { Interop.SECURITY_STATUS.CredentialsNeeded, SecurityStatusPalErrorCode.CredentialsNeeded }, { Interop.SECURITY_STATUS.DecryptFailure, SecurityStatusPalErrorCode.DecryptFailure }, diff --git a/src/libraries/Common/src/System/Net/SecurityStatusPal.cs b/src/libraries/Common/src/System/Net/SecurityStatusPal.cs index 064aa974d6bb2..f3847b88397da 100644 --- a/src/libraries/Common/src/System/Net/SecurityStatusPal.cs +++ b/src/libraries/Common/src/System/Net/SecurityStatusPal.cs @@ -71,6 +71,7 @@ internal enum SecurityStatusPalErrorCode DowngradeDetected, ApplicationProtocolMismatch, NoRenegotiation, - KeySetDoesNotExist + KeySetDoesNotExist, + ContextExpiredError } }