mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-03 05:40: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
|
|
@ -46,28 +46,16 @@ cJSON *OpenAPI_pws_information_convertToJSON(OpenAPI_pws_information_t *pws_info
|
|||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
if (!pws_information->message_identifier) {
|
||||
ogs_error("OpenAPI_pws_information_convertToJSON() failed [message_identifier]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddNumberToObject(item, "messageIdentifier", pws_information->message_identifier) == NULL) {
|
||||
ogs_error("OpenAPI_pws_information_convertToJSON() failed [message_identifier]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (!pws_information->serial_number) {
|
||||
ogs_error("OpenAPI_pws_information_convertToJSON() failed [serial_number]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddNumberToObject(item, "serialNumber", pws_information->serial_number) == NULL) {
|
||||
ogs_error("OpenAPI_pws_information_convertToJSON() failed [serial_number]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (!pws_information->pws_container) {
|
||||
ogs_error("OpenAPI_pws_information_convertToJSON() failed [pws_container]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *pws_container_local_JSON = OpenAPI_n2_info_content_convertToJSON(pws_information->pws_container);
|
||||
if (pws_container_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_pws_information_convertToJSON() failed [pws_container]");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue