diff options
author | lloyd <[email protected]> | 2012-01-04 21:28:34 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-04 21:28:34 +0000 |
commit | 48cbc3d991308ecc155e36ea1ac6dbfe1762a928 (patch) | |
tree | 2a0648776772e07afafffb7665e36b175f9ce795 /src/tls/tls_channel.h | |
parent | 0937d977a5262917cca3be6c2316ed68b092a31f (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_channel.h')
-rw-r--r-- | src/tls/tls_channel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tls/tls_channel.h b/src/tls/tls_channel.h index 129182150..bf9665ef8 100644 --- a/src/tls/tls_channel.h +++ b/src/tls/tls_channel.h @@ -84,6 +84,8 @@ class BOTAN_DLL TLS_Channel virtual void process_handshake_msg(Handshake_Type type, const MemoryRegion<byte>& contents) = 0; + virtual void alert_notify(bool fatal_alert, Alert_Type type) = 0; + std::tr1::function<void (const byte[], size_t, u16bit)> proc_fn; std::tr1::function<bool (const TLS_Session&)> handshake_fn; |