|
| 1 | +// Copyright 2021 Google Inc. All Rights Reserved. |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | + |
| 15 | +using NtApiDotNet.Utilities.Reflection; |
| 16 | + |
| 17 | +namespace NtApiDotNet.Win32.Security.Authentication.Schannel |
| 18 | +{ |
| 19 | + /// <summary> |
| 20 | + /// Schannel Alert Number. |
| 21 | + /// </summary> |
| 22 | + public enum SchannelAlertNumber |
| 23 | + { |
| 24 | +#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member |
| 25 | + [SDKName("TLS1_ALERT_CLOSE_NOTIFY")] CloseNotify = 0, // warning |
| 26 | + [SDKName("TLS1_ALERT_UNEXPECTED_MESSAGE")] UnexpectedMessage = 10, // error |
| 27 | + [SDKName("TLS1_ALERT_BAD_RECORD_MAC")] BadRecordMAC = 20, // error |
| 28 | + [SDKName("TLS1_ALERT_DECRYPTION_FAILED")] DecryptionFailed = 21, // reserved |
| 29 | + [SDKName("TLS1_ALERT_RECORD_OVERFLOW")] RecordOverflow = 22, // error |
| 30 | + [SDKName("TLS1_ALERT_DECOMPRESSION_FAIL")] DecompressionFail = 30, // error |
| 31 | + [SDKName("TLS1_ALERT_HANDSHAKE_FAILURE")] HandshakeFailure = 40, // error |
| 32 | + [SDKName("TLS1_ALERT_BAD_CERTIFICATE")] BadCertificate = 42, // warning or error |
| 33 | + [SDKName("TLS1_ALERT_UNSUPPORTED_CERT")] UnsupportedCert = 43, // warning or error |
| 34 | + [SDKName("TLS1_ALERT_CERTIFICATE_REVOKED")] CertificateRevoked = 44, // warning or error |
| 35 | + [SDKName("TLS1_ALERT_CERTIFICATE_EXPIRED")] CertificateExpired = 45, // warning or error |
| 36 | + [SDKName("TLS1_ALERT_CERTIFICATE_UNKNOWN")] CertificateUnknown = 46, // warning or error |
| 37 | + [SDKName("TLS1_ALERT_ILLEGAL_PARAMETER")] IllegalParameter = 47, // error |
| 38 | + [SDKName("TLS1_ALERT_UNKNOWN_CA")] UnknownCA = 48, // error |
| 39 | + [SDKName("TLS1_ALERT_ACCESS_DENIED")] AccessDenied = 49, // error |
| 40 | + [SDKName("TLS1_ALERT_DECODE_ERROR")] DecodeError = 50, // error |
| 41 | + [SDKName("TLS1_ALERT_DECRYPT_ERROR")] DecryptError = 51, // error |
| 42 | + [SDKName("TLS1_ALERT_EXPORT_RESTRICTION")] ExportRestriction = 60, // reserved |
| 43 | + [SDKName("TLS1_ALERT_PROTOCOL_VERSION")] ProtocolVersion = 70, // error |
| 44 | + [SDKName("TLS1_ALERT_INSUFFIENT_SECURITY")] InsufficientSecurity = 71, // error |
| 45 | + [SDKName("TLS1_ALERT_INTERNAL_ERROR")] InternalError = 80, // error |
| 46 | + [SDKName("TLS1_ALERT_USER_CANCELED")] UserCancelled = 90, // warning or error |
| 47 | + [SDKName("TLS1_ALERT_NO_RENEGOTIATION")] NoRenogotiation = 100, // warning |
| 48 | + [SDKName("TLS1_ALERT_UNSUPPORTED_EXT")] UnsupportedExt = 110, // error |
| 49 | + [SDKName("TLS1_ALERT_UNKNOWN_PSK_IDENTITY")] UnknownPskIdentity = 115, // error |
| 50 | + [SDKName("TLS1_ALERT_NO_APP_PROTOCOL")] NoAppProtocol = 120, // error |
| 51 | +#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member |
| 52 | + } |
| 53 | +} |
0 commit comments