aboutsummaryrefslogtreecommitdiffstats
path: root/src/libpttls/pt_tls_dispatcher.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-01-17 15:16:03 +0100
committerMartin Willi <martin@revosec.ch>2013-01-17 16:34:34 +0100
commit16ef69d70a1c8d767ff690c5062a4837617da5d7 (patch)
tree26c36b59dc1c6f7a01af4461ff915451ac334719 /src/libpttls/pt_tls_dispatcher.h
parent04a9a99bc1902aed3793a605a700951558399edf (diff)
downloadstrongswan-16ef69d70a1c8d767ff690c5062a4837617da5d7.tar.bz2
strongswan-16ef69d70a1c8d767ff690c5062a4837617da5d7.tar.xz
Pass a constructor callback to create TNCCS server instances while dispatching
Diffstat (limited to 'src/libpttls/pt_tls_dispatcher.h')
-rw-r--r--src/libpttls/pt_tls_dispatcher.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libpttls/pt_tls_dispatcher.h b/src/libpttls/pt_tls_dispatcher.h
index 463bd6cc8..5d01f7fef 100644
--- a/src/libpttls/pt_tls_dispatcher.h
+++ b/src/libpttls/pt_tls_dispatcher.h
@@ -24,6 +24,8 @@
#include <networking/host.h>
#include <utils/identification.h>
+#include <tnc/tnccs/tnccs.h>
+
typedef struct pt_tls_dispatcher_t pt_tls_dispatcher_t;
/**
@@ -34,9 +36,12 @@ struct pt_tls_dispatcher_t {
/**
* Dispatch and handle PT-TLS connections.
*
- * This call is blocking and a thread cancellation point.
+ * This call is blocking and a thread cancellation point. The passed
+ * constructor gets called for each dispatched connection.
+ *
+ * @param create TNCCS constructor function to use
*/
- void (*dispatch)(pt_tls_dispatcher_t *this);
+ void (*dispatch)(pt_tls_dispatcher_t *this, tnccs_t*(*create)());
/**
* Destroy a pt_tls_dispatcher_t.