[AMF] security protection (UERANSIM-issues316)

1. Allocate ngKSI other than the value already used.
2. Add the protection of Service request
3. fix SBI convert error ng_ap_cause
This commit is contained in:
Sukchan Lee 2021-05-08 13:24:17 +09:00
parent b0e8dbb31a
commit 5ea9b22209
384 changed files with 226 additions and 2699 deletions

View file

@ -58,10 +58,6 @@ cJSON *OpenAPI_policy_data_subscription_convertToJSON(OpenAPI_policy_data_subscr
}
item = cJSON_CreateObject();
if (!policy_data_subscription->notification_uri) {
ogs_error("OpenAPI_policy_data_subscription_convertToJSON() failed [notification_uri]");
goto end;
}
if (cJSON_AddStringToObject(item, "notificationUri", policy_data_subscription->notification_uri) == NULL) {
ogs_error("OpenAPI_policy_data_subscription_convertToJSON() failed [notification_uri]");
goto end;
@ -74,10 +70,6 @@ cJSON *OpenAPI_policy_data_subscription_convertToJSON(OpenAPI_policy_data_subscr
}
}
if (!policy_data_subscription->monitored_resource_uris) {
ogs_error("OpenAPI_policy_data_subscription_convertToJSON() failed [monitored_resource_uris]");
goto end;
}
cJSON *monitored_resource_uris = cJSON_AddArrayToObject(item, "monitoredResourceUris");
if (monitored_resource_uris == NULL) {
ogs_error("OpenAPI_policy_data_subscription_convertToJSON() failed [monitored_resource_uris]");