aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-12-28 13:37:46 +0000
committerlloyd <[email protected]>2011-12-28 13:37:46 +0000
commit41288ade572a2fa64132c0f1baa741ad39dc5923 (patch)
treeb983922f51c1dd1072f443be3d7b9028c7071875 /src
parent9ef53bc0f5d3d503633e8c8335a14c39a149b184 (diff)
Slightly better alert option for this case
Diffstat (limited to 'src')
-rw-r--r--src/tls/hello.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tls/hello.cpp b/src/tls/hello.cpp
index 1312d075a..207c3d097 100644
--- a/src/tls/hello.cpp
+++ b/src/tls/hello.cpp
@@ -249,7 +249,7 @@ Server_Hello::Server_Hello(RandomNumberGenerator& rng,
suite = policy.choose_suite(c_hello.ciphersuites(), have_rsa, have_dsa);
if(suite == 0)
- throw TLS_Exception(PROTOCOL_VERSION,
+ throw TLS_Exception(HANDSHAKE_FAILURE,
"Can't agree on a ciphersuite with client");
comp_method = policy.choose_compression(c_hello.compression_methods());