未验证 提交 0712aebe 编写于 作者: B Badre BSAILA 提交者: GitHub

handle SECURITY_STATUS 0x80090016 (#69942)

* handle SECURITY_STATUS 0x80090016

* adjust dictionary size

* capital set
上级 0971e5e2
......@@ -51,5 +51,6 @@ internal enum SECURITY_STATUS
DowngradeDetected = unchecked((int)0x80090350),
ApplicationProtocolMismatch = unchecked((int)0x80090367),
NoRenegotiation = unchecked((int)0x00090360),
KeySetDoesNotExist = unchecked((int)0x80090016)
}
}
......@@ -9,7 +9,7 @@ namespace System.Net
{
internal static class SecurityStatusAdapterPal
{
private const int StatusDictionarySize = 43;
private const int StatusDictionarySize = 44;
#if DEBUG
static SecurityStatusAdapterPal()
......@@ -62,7 +62,8 @@ static SecurityStatusAdapterPal()
{ Interop.SECURITY_STATUS.Unsupported, SecurityStatusPalErrorCode.Unsupported },
{ Interop.SECURITY_STATUS.UntrustedRoot, SecurityStatusPalErrorCode.UntrustedRoot },
{ Interop.SECURITY_STATUS.WrongPrincipal, SecurityStatusPalErrorCode.WrongPrincipal },
{ Interop.SECURITY_STATUS.NoRenegotiation, SecurityStatusPalErrorCode.NoRenegotiation }
{ Interop.SECURITY_STATUS.NoRenegotiation, SecurityStatusPalErrorCode.NoRenegotiation },
{ Interop.SECURITY_STATUS.KeySetDoesNotExist, SecurityStatusPalErrorCode.KeySetDoesNotExist }
};
internal static SecurityStatusPal GetSecurityStatusPalFromNativeInt(int win32SecurityStatus)
......
......@@ -70,6 +70,7 @@ internal enum SecurityStatusPalErrorCode
BadBinding,
DowngradeDetected,
ApplicationProtocolMismatch,
NoRenegotiation
NoRenegotiation,
KeySetDoesNotExist
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册