移植KNIv1版本的acceptor到4a分支,兼容原kni的实现。
This commit is contained in:
7
platform/include/internal/acceptor_kni_v1.h
Normal file
7
platform/include/internal/acceptor_kni_v1.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
struct tfe_proxy;
|
||||
struct acceptor_kni_v1;
|
||||
|
||||
struct acceptor_kni_v1 * acceptor_kni_v1_create(struct tfe_proxy * proxy, const char * profile, void * logger);
|
||||
void acceptor_kni_v1_destroy(struct acceptor_kni_v1 * ctx);
|
||||
7
platform/include/internal/acceptor_kni_v2.h
Normal file
7
platform/include/internal/acceptor_kni_v2.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
struct tfe_proxy;
|
||||
struct acceptor_kni_v2;
|
||||
|
||||
struct acceptor_kni_v2 * acceptor_kni_v2_create(struct tfe_proxy * proxy, const char * profile, void * logger);
|
||||
void acceptor_kni_v2_destroy(struct acceptor_kni_v2 * ctx);
|
||||
@@ -1,7 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
struct tfe_proxy;
|
||||
struct acceptor_scm;
|
||||
|
||||
struct acceptor_scm * acceptor_scm_create(struct tfe_proxy * proxy, const char * profile, void * logger);
|
||||
void acceptor_scm_deinit(struct acceptor_scm * ctx);
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
struct ssl_mgr;
|
||||
struct key_keeper;
|
||||
struct acceptor_scm;
|
||||
struct acceptor_kni_v2;
|
||||
|
||||
enum TFE_STAT_FIELD
|
||||
{
|
||||
@@ -93,7 +93,12 @@ struct tfe_proxy
|
||||
struct ssl_mgr * ssl_mgr_handler;
|
||||
struct ssl_policy_enforcer* ssl_ply_enforcer;
|
||||
struct key_keeper * key_keeper_handler;
|
||||
struct acceptor_scm * kni_acceptor_handler;
|
||||
|
||||
unsigned int en_kni_v1_acceptor;
|
||||
unsigned int en_kni_v2_acceptor;
|
||||
|
||||
struct acceptor_kni_v1 * kni_v1_acceptor;
|
||||
struct acceptor_kni_v2 * kni_v2_acceptor;
|
||||
|
||||
/* DEBUG OPTIONS */
|
||||
unsigned int tcp_all_passthrough;
|
||||
|
||||
Reference in New Issue
Block a user