aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_server.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-04 21:28:34 +0000
committerlloyd <[email protected]>2012-01-04 21:28:34 +0000
commit48cbc3d991308ecc155e36ea1ac6dbfe1762a928 (patch)
tree2a0648776772e07afafffb7665e36b175f9ce795 /src/tls/tls_server.h
parent0937d977a5262917cca3be6c2316ed68b092a31f (diff)
Add a hook in TLS_Channel that is called when an alert is received.
Currently has the same behavior in client and server; if we got a NO_RENEGOTIATION alert, and we appear to be renegotiating, delete the state if it exists. Noticed when talking to OpenSSL 0.9.8g which rejects all renegotiation requests.
Diffstat (limited to 'src/tls/tls_server.h')
-rw-r--r--src/tls/tls_server.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tls/tls_server.h b/src/tls/tls_server.h
index 31e0e9ca4..f8c3a8563 100644
--- a/src/tls/tls_server.h
+++ b/src/tls/tls_server.h
@@ -53,6 +53,8 @@ class BOTAN_DLL TLS_Server : public TLS_Channel
void process_handshake_msg(Handshake_Type, const MemoryRegion<byte>&);
+ void alert_notify(bool is_fatal, Alert_Type type);
+
const TLS_Policy& policy;
RandomNumberGenerator& rng;
TLS_Session_Manager& session_manager;