diff options
| author | fengweihao <[email protected]> | 2022-09-26 16:13:24 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2022-09-26 16:13:24 +0800 |
| commit | 74b95d15dc95b9a3f46f996afc2c2d7e2c602552 (patch) | |
| tree | a170571597fe18d9fa03ceed94a923af14924255 /platform/src/verify_policy.cpp | |
| parent | 15eef3d831927282861a72d805582f276a3799b1 (diff) | |
TSG-11996 策略验证支持Tunnel Object,修复合并tunnel问题v2.3.6-20220926
Diffstat (limited to 'platform/src/verify_policy.cpp')
| -rw-r--r-- | platform/src/verify_policy.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/platform/src/verify_policy.cpp b/platform/src/verify_policy.cpp index b5ae9cb..c18b1b0 100644 --- a/platform/src/verify_policy.cpp +++ b/platform/src/verify_policy.cpp @@ -372,6 +372,23 @@ cJSON *get_query_from_request(const char *data, int thread_id) for (subchild = attributes->child; subchild != NULL; subchild = subchild->next) { + item = cJSON_GetObjectItem(subchild, "attributeName"); + if(item && item->type==cJSON_String) + { + if(0 == strcasecmp(item->valuestring, "tunnel_endpointa")) + { + verify_policy_tunnle_add(ctx); + } + + if(0 == strcasecmp(item->valuestring, "tunnel_endpointb")) + { + verify_policy_tunnle_add(ctx); + } + } + } + + for (subchild = attributes->child; subchild != NULL; subchild = subchild->next) + { xret = get_attribute_from_json(i, subchild, verify_policy); if (xret < 0) { |
