aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/tls_server.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-02-14 05:42:50 +0000
committerlloyd <[email protected]>2010-02-14 05:42:50 +0000
commit508ccf7deb5ae8acb05d3514067bf3d0cc504a62 (patch)
tree56c0002503c01af255193aca762415875775170d /src/ssl/tls_server.cpp
parent1e596a25e32c3106b3d6e2aceb64a270a8b30713 (diff)
Various minor SSL fixes
Diffstat (limited to 'src/ssl/tls_server.cpp')
-rw-r--r--src/ssl/tls_server.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ssl/tls_server.cpp b/src/ssl/tls_server.cpp
index a530d04dd..6ee4f51d2 100644
--- a/src/ssl/tls_server.cpp
+++ b/src/ssl/tls_server.cpp
@@ -7,7 +7,7 @@
#include <botan/tls_server.h>
#include <botan/tls_alerts.h>
-#include <botan/tls_exceptn.h>
+#include <botan/tls_state.h>
#include <botan/loadstor.h>
#include <botan/rsa.h>
#include <botan/dh.h>
@@ -23,7 +23,7 @@ Version_Code choose_version(Version_Code client, Version_Code minimum)
{
if(client < minimum)
throw TLS_Exception(PROTOCOL_VERSION,
- "Client's protocol is unacceptable by policy");
+ "Client version is unacceptable by policy");
if(client == SSL_V3 || client == TLS_V10)
return client;
@@ -458,8 +458,7 @@ void TLS_Server::do_handshake()
state_machine();
if(!active && !state)
- throw TLS_Exception(HANDSHAKE_FAILURE,
- "TLS_Server: Handshake failed");
+ throw TLS_Exception(HANDSHAKE_FAILURE, "TLS_Server: Handshake failed");
}
}