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_channel.cpp | |
parent | cb8c64be095a0ef75beb621e8d669096efd7b8ae (diff) |
Remove Alert::Level enum, replace with bool
Diffstat (limited to 'src/tls/tls_channel.cpp')
-rw-r--r-- | src/tls/tls_channel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tls/tls_channel.cpp b/src/tls/tls_channel.cpp index 372d4125f..d737ef237 100644 --- a/src/tls/tls_channel.cpp +++ b/src/tls/tls_channel.cpp @@ -90,7 +90,7 @@ size_t Channel::received_data(const byte buf[], size_t buf_size) if(connection_closed) reader.reset(); else - send_alert(Alert(Alert::WARNING, Alert::CLOSE_NOTIFY)); // reply in kind + send_alert(Alert(Alert::CLOSE_NOTIFY)); // reply in kind } else if(alert_msg.is_fatal()) { @@ -113,22 +113,22 @@ size_t Channel::received_data(const byte buf[], size_t buf_size) } catch(TLS_Exception& e) { - send_alert(Alert(Alert::FATAL, e.type())); + send_alert(Alert(e.type(), true)); throw; } catch(Decoding_Error& e) { - send_alert(Alert(Alert::FATAL, Alert::DECODE_ERROR)); + send_alert(Alert(Alert::DECODE_ERROR, true)); throw; } catch(Internal_Error& e) { - send_alert(Alert(Alert::FATAL, Alert::INTERNAL_ERROR)); + send_alert(Alert(Alert::INTERNAL_ERROR, true)); throw; } catch(std::exception& e) { - send_alert(Alert(Alert::FATAL, Alert::INTERNAL_ERROR)); + send_alert(Alert(Alert::INTERNAL_ERROR, true)); throw; } } |