aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_client.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_client.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_client.h')
-rw-r--r--src/tls/tls_client.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tls/tls_client.h b/src/tls/tls_client.h
index 85f220264..95b5c8f61 100644
--- a/src/tls/tls_client.h
+++ b/src/tls/tls_client.h
@@ -56,6 +56,8 @@ class BOTAN_DLL TLS_Client : public TLS_Channel
void process_handshake_msg(Handshake_Type type,
const MemoryRegion<byte>& contents);
+ void alert_notify(bool is_fatal, Alert_Type type);
+
const TLS_Policy& policy;
RandomNumberGenerator& rng;
TLS_Session_Manager& session_manager;