aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/hello.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls/hello.cpp')
-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());