aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_alert.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-26 21:36:19 +0000
committerlloyd <[email protected]>2012-01-26 21:36:19 +0000
commit17554e7261c56b809c48a55b3afffe7f87a3a8e1 (patch)
treea953ca2e3460b67f175c9e63cc7ce5e1e5aca315 /src/tls/tls_alert.h
parentcb8c64be095a0ef75beb621e8d669096efd7b8ae (diff)
Remove Alert::Level enum, replace with bool
Diffstat (limited to 'src/tls/tls_alert.h')
-rw-r--r--src/tls/tls_alert.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tls/tls_alert.h b/src/tls/tls_alert.h
index d09b79168..0446a8c30 100644
--- a/src/tls/tls_alert.h
+++ b/src/tls/tls_alert.h
@@ -21,11 +21,6 @@ namespace TLS {
class BOTAN_DLL Alert
{
public:
- enum Level {
- WARNING = 1,
- FATAL = 2
- };
-
enum Type {
CLOSE_NOTIFY = 0,
UNEXPECTED_MESSAGE = 10,
@@ -86,7 +81,8 @@ class BOTAN_DLL Alert
*/
Alert(const MemoryRegion<byte>& buf);
- Alert(Level level, Type code) : fatal(level == FATAL), type_code(code) {}
+ Alert(Type alert_type, bool is_fatal = false) :
+ fatal(is_fatal), type_code(alert_type) {}
Alert() : fatal(false), type_code(NULL_ALERT) {}
private: