diff options
| author | fengweihao <[email protected]> | 2022-01-19 16:49:59 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2022-01-19 16:49:59 +0800 |
| commit | 697a98192a0bf64ca9e49121d88b163d072375cb (patch) | |
| tree | 9ea7b11564c406e1e05df09002a4542e280e0b43 /platform/src/verify_policy.cpp | |
| parent | b081271a88090d4e15f21a10bb1f39175eed0f69 (diff) | |
feature: 删除一直未使用的Wannat MAAT句柄的初始化及实现
Diffstat (limited to 'platform/src/verify_policy.cpp')
| -rw-r--r-- | platform/src/verify_policy.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/platform/src/verify_policy.cpp b/platform/src/verify_policy.cpp index e6c9eae..7a05254 100644 --- a/platform/src/verify_policy.cpp +++ b/platform/src/verify_policy.cpp @@ -73,7 +73,6 @@ enum verify_policy_type tsg_policy_type_str2idx(const char *action_str) const char * policy_name[__SCAN_POLICY_MAX]; policy_name[PXY_TABLE_SECURITY] = "tsg_security"; policy_name[PXY_TABLE_MANIPULATION] = "pxy_manipulation"; - policy_name[PXY_TABLE_WANNAT] = "pxy_wannat"; policy_name[PXY_TABLE_DEFENCE] = "active_defence"; size_t i = 0; @@ -146,11 +145,6 @@ int protoco_field_type_str2idx(enum verify_policy_type type, const char *action_ table_name[PXY_SECURITY_EXCLUSION_SSL_SNI]="TSG_DECYPTION_EXCLUSION_SSL_SNI"; scan_table_max = PXY_SECURITY_EXCLUSION_SSL_SNI; break; - case PXY_TABLE_WANNAT: - table_name[PXY_WANNAT_SOURCE_ADDR]="TSG_SECURITY_SOURCE_ADDR"; - table_name[PXY_WANNAT_DESTINATION_ADDR]="TSG_SECURITY_DESTINATION_ADDR"; - scan_table_max = PXY_WANNAT_DESTINATION_ADDR; - break; case PXY_TABLE_DEFENCE: break; default: @@ -904,9 +898,6 @@ int main(int argc, char * argv[]) ret = proxy_policy_init(g_verify_proxy, main_profile); CHECK_OR_EXIT(ret == 0, "Failed at init panggu module, Exit."); - ret = wannat_policy_init(g_verify_proxy, main_profile); - CHECK_OR_EXIT(ret == 0, "Failed at init wannat module, Exit."); - clock_gettime(CLOCK_REALTIME, &(end_time)); mesa_runtime_log(RLOG_LV_DEBUG, MODULE_NAME, "Read table_info_proxy.conf, take time %lu(s)", end_time.tv_sec - start_time.tv_sec); printf("Read table_info_proxy.conf, take time %lu(s)\n", end_time.tv_sec - start_time.tv_sec); |
