diff options
author | lloyd <[email protected]> | 2012-01-26 21:36:19 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-26 21:36:19 +0000 |
commit | 17554e7261c56b809c48a55b3afffe7f87a3a8e1 (patch) | |
tree | a953ca2e3460b67f175c9e63cc7ce5e1e5aca315 /src/tls/tls_alert.h | |
parent | cb8c64be095a0ef75beb621e8d669096efd7b8ae (diff) |
Remove Alert::Level enum, replace with bool
Diffstat (limited to 'src/tls/tls_alert.h')
-rw-r--r-- | src/tls/tls_alert.h | 8 |
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: |