aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_callbacks.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-16 15:23:24 -0500
committerJack Lloyd <[email protected]>2016-11-16 15:23:24 -0500
commit674b7c5a16f449f6024b99a1b208feaa933ca8a5 (patch)
treeab17c8b7a4a4250982c000e5dd31fc755b6d7826 /src/lib/tls/tls_callbacks.h
parent95764150587d037ed895bdef71d575eeebda9ce5 (diff)
Add new TLS callback for when session is activated
The current session established cb happens before the session is activated, so it is not possible to send application data in response to the connection being made.
Diffstat (limited to 'src/lib/tls/tls_callbacks.h')
-rw-r--r--src/lib/tls/tls_callbacks.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/tls/tls_callbacks.h b/src/lib/tls/tls_callbacks.h
index 4a14055f9..f81071a05 100644
--- a/src/lib/tls/tls_callbacks.h
+++ b/src/lib/tls/tls_callbacks.h
@@ -75,6 +75,12 @@ class BOTAN_DLL Callbacks
virtual bool tls_session_established(const Session& session) = 0;
/**
+ * Optional callback: session activated
+ * Called when a session is active and can be written to
+ */
+ virtual void tls_session_activated() {}
+
+ /**
* Optional callback: inspect handshake message
* Throw an exception to abort the handshake.
* Default simply ignores the message.