summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2024-10-17 18:18:17 +0800
committerfengweihao <[email protected]>2024-10-17 18:18:17 +0800
commit5a1ecfba92d918563b0c5ac694fbdc7f0b649008 (patch)
tree273af98c91b6b87900de9117503f6bbc10cc7a26 /plugin
parent9a437cb057df87d696c1c9c26de9eb1dad15d7a9 (diff)
Adapt to the changes in the addition and deletion flags of the callback table.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/business/tsg-http/src/tsg_http.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/plugin/business/tsg-http/src/tsg_http.cpp b/plugin/business/tsg-http/src/tsg_http.cpp
index 989889c..073140c 100644
--- a/plugin/business/tsg-http/src/tsg_http.cpp
+++ b/plugin/business/tsg-http/src/tsg_http.cpp
@@ -250,7 +250,6 @@ void trusted_CA_update_cert_cb(const char *table_name, const char *table_line, e
}
char *uuid_sring=NULL;
- int is_valid=0;
char cert_name[128]={0}, cert_file[1024]={0};
cJSON *uuid = cJSON_GetObjectItem(trust_ca_cert, "uuid");
@@ -268,13 +267,8 @@ void trusted_CA_update_cert_cb(const char *table_name, const char *table_line, e
{
memcpy(cert_file, item->valuestring, strlen(item->valuestring));
}
- item = cJSON_GetObjectItem(trust_ca_cert, "is_valid");
- if(item && item->type==cJSON_Number)
- {
- is_valid=item->valueint;
- }
- if(is_valid==1)
+ if(op==MAAT_OP_ADD)
{
ret=tfe_proxy_ssl_add_trust_ca(cert_file);
if(ret<0)