TSG-1531 TFE 新增 DOH 插件
1.DOH 协议解析 2.DOH 协议还原 3.DOH POST请求 early response 4.DOH 策略扫描 5.tfe plugin 支持多个 bussiness 插件调用 6.Maat_feather 的创建从 pangu 剥离(涉及pangu/doh/ssl-policy) 7.增加 kafka 日志 8.增加测试用例
This commit is contained in:
@@ -282,10 +282,13 @@ struct http_field_name
|
||||
const char * field_name;
|
||||
};
|
||||
|
||||
#define CALL_NEXT_PLUGIN 0
|
||||
#define NO_CALL_NEXT_PLUGIN -1
|
||||
|
||||
typedef void (http_session_begin_cb)(const struct tfe_stream * stream,
|
||||
const struct tfe_http_session * session, unsigned int thread_id, void ** pme);
|
||||
|
||||
typedef void (http_session_data_cb)(const struct tfe_stream * stream,
|
||||
typedef int (http_session_data_cb)(const struct tfe_stream * stream,
|
||||
const struct tfe_http_session * session, enum tfe_http_event event, const unsigned char * data,
|
||||
size_t datalen, unsigned int thread_id, void ** pme);
|
||||
|
||||
|
||||
10
common/include/tfe_resource.h
Normal file
10
common/include/tfe_resource.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
enum RESOURCE_TYPE
|
||||
{
|
||||
STATIC_MAAT,
|
||||
DYNAMINC_MAAT,
|
||||
};
|
||||
|
||||
int tfe_bussiness_resouce_init();
|
||||
void *tfe_bussiness_resouce_get(enum RESOURCE_TYPE type);
|
||||
@@ -175,4 +175,5 @@ char *tfe_read_file(const char *filename, size_t *filelen);
|
||||
const char * tfe_version();
|
||||
int __wrapper_MESA_htable_set_opt(MESA_htable_handle table, enum MESA_htable_opt opt_type, unsigned value);
|
||||
int __wrapper_MESA_htable_set_opt(MESA_htable_handle table, enum MESA_htable_opt opt_type, void * val, size_t len);
|
||||
int tfe_decode_base64url(u_char *dst, u_char *src);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user