Pass a constructor callback to create TNCCS server instances while dispatching
This commit is contained in:
@@ -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_ @}*/
|
||||
|
||||
Reference in New Issue
Block a user