mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +00:00
[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:
parent
b0e8dbb31a
commit
5ea9b22209
384 changed files with 226 additions and 2699 deletions
|
|
@ -40,28 +40,16 @@ cJSON *OpenAPI_eps_bearer_info_convertToJSON(OpenAPI_eps_bearer_info_t *eps_bear
|
|||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
if (!eps_bearer_info->ebi) {
|
||||
ogs_error("OpenAPI_eps_bearer_info_convertToJSON() failed [ebi]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddNumberToObject(item, "ebi", eps_bearer_info->ebi) == NULL) {
|
||||
ogs_error("OpenAPI_eps_bearer_info_convertToJSON() failed [ebi]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (!eps_bearer_info->pgw_s8u_fteid) {
|
||||
ogs_error("OpenAPI_eps_bearer_info_convertToJSON() failed [pgw_s8u_fteid]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddNumberToObject(item, "pgwS8uFteid", eps_bearer_info->pgw_s8u_fteid) == NULL) {
|
||||
ogs_error("OpenAPI_eps_bearer_info_convertToJSON() failed [pgw_s8u_fteid]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (!eps_bearer_info->bearer_level_qo_s) {
|
||||
ogs_error("OpenAPI_eps_bearer_info_convertToJSON() failed [bearer_level_qo_s]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddNumberToObject(item, "bearerLevelQoS", eps_bearer_info->bearer_level_qo_s) == NULL) {
|
||||
ogs_error("OpenAPI_eps_bearer_info_convertToJSON() failed [bearer_level_qo_s]");
|
||||
goto end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue