diff options
author | lloyd <[email protected]> | 2012-01-26 21:00:01 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-26 21:00:01 +0000 |
commit | 4b8786ad157e38b4143b0968c1ea1c83c2ee7388 (patch) | |
tree | 2a0272f0b6f5e14d738c5bfdb126f5e3ef45fb3b /src/tls/s_hello.cpp | |
parent | 4b285bd51a48f78f41a14beb9626a8db59e65960 (diff) |
Make Alert a first class object ala Version. Move the alert codes into
the Alert class for namespacing.
Diffstat (limited to 'src/tls/s_hello.cpp')
-rw-r--r-- | src/tls/s_hello.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tls/s_hello.cpp b/src/tls/s_hello.cpp index caf89fb44..0ad78fc5b 100644 --- a/src/tls/s_hello.cpp +++ b/src/tls/s_hello.cpp @@ -46,7 +46,7 @@ Server_Hello::Server_Hello(Record_Writer& writer, false); if(suite == 0) - throw TLS_Exception(HANDSHAKE_FAILURE, + throw TLS_Exception(Alert::HANDSHAKE_FAILURE, "Can't agree on a ciphersuite with client"); comp_method = policy.choose_compression(c_hello.compression_methods()); @@ -106,7 +106,7 @@ Server_Hello::Server_Hello(const MemoryRegion<byte>& buf) s_version != Protocol_Version::TLS_V11 && s_version != Protocol_Version::TLS_V12) { - throw TLS_Exception(PROTOCOL_VERSION, + throw TLS_Exception(Alert::PROTOCOL_VERSION, "Server_Hello: Unsupported server version"); } |