Pass a constructor callback to create TNCCS server instances while dispatching

This commit is contained in:
Martin Willi
2013-01-17 16:34:34 +01:00
parent 04a9a99bc1
commit 16ef69d70a
4 changed files with 31 additions and 15 deletions
+5 -1
View File
@@ -23,6 +23,8 @@
#include <utils/identification.h>
#include <tnc/tnccs/tnccs.h>
typedef struct pt_tls_server_t pt_tls_server_t;
/**
@@ -58,8 +60,10 @@ struct pt_tls_server_t {
*
* @param server TLS server identity
* @param fd client connection socket
* @param tnccs inner TNCCS protocol handler to use for this connection
* @return PT-TLS server
*/
pt_tls_server_t *pt_tls_server_create(identification_t *server, int fd);
pt_tls_server_t *pt_tls_server_create(identification_t *server, int fd,
tnccs_t *tnccs);
#endif /** PT_TLS_SERVER_H_ @}*/