summary refs log tree commit diff
path: root/crypto/src/crypto/tls/AlertLevel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/crypto/tls/AlertLevel.cs')
-rw-r--r--crypto/src/crypto/tls/AlertLevel.cs29
1 files changed, 0 insertions, 29 deletions
diff --git a/crypto/src/crypto/tls/AlertLevel.cs b/crypto/src/crypto/tls/AlertLevel.cs
deleted file mode 100644
index 9461a0b58..000000000
--- a/crypto/src/crypto/tls/AlertLevel.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-namespace Org.BouncyCastle.Crypto.Tls
-{
-    /// <summary>
-    /// RFC 5246 7.2
-    /// </summary>
-    public abstract class AlertLevel
-    {
-        public const byte warning = 1;
-        public const byte fatal = 2;
-
-        public static string GetName(byte alertDescription)
-        {
-            switch (alertDescription)
-            {
-            case warning:
-                return "warning";
-            case fatal:
-                return "fatal";
-            default:
-                return "UNKNOWN";
-            }
-        }
-
-        public static string GetText(byte alertDescription)
-        {
-            return GetName(alertDescription) + "(" + alertDescription + ")";
-        }
-    }
-}