mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 05:10:10 +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
|
|
@ -330,10 +330,6 @@ cJSON *OpenAPI_sm_context_create_data_convertToJSON(OpenAPI_sm_context_create_da
|
|||
}
|
||||
}
|
||||
|
||||
if (!sm_context_create_data->serving_nf_id) {
|
||||
ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed [serving_nf_id]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "servingNfId", sm_context_create_data->serving_nf_id) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed [serving_nf_id]");
|
||||
goto end;
|
||||
|
|
@ -359,10 +355,6 @@ cJSON *OpenAPI_sm_context_create_data_convertToJSON(OpenAPI_sm_context_create_da
|
|||
}
|
||||
}
|
||||
|
||||
if (!sm_context_create_data->serving_network) {
|
||||
ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed [serving_network]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *serving_network_local_JSON = OpenAPI_plmn_id_nid_convertToJSON(sm_context_create_data->serving_network);
|
||||
if (serving_network_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed [serving_network]");
|
||||
|
|
@ -394,10 +386,6 @@ cJSON *OpenAPI_sm_context_create_data_convertToJSON(OpenAPI_sm_context_create_da
|
|||
}
|
||||
}
|
||||
|
||||
if (!sm_context_create_data->an_type) {
|
||||
ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed [an_type]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "anType", OpenAPI_access_type_ToString(sm_context_create_data->an_type)) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed [an_type]");
|
||||
goto end;
|
||||
|
|
@ -457,10 +445,6 @@ cJSON *OpenAPI_sm_context_create_data_convertToJSON(OpenAPI_sm_context_create_da
|
|||
}
|
||||
}
|
||||
|
||||
if (!sm_context_create_data->sm_context_status_uri) {
|
||||
ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed [sm_context_status_uri]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "smContextStatusUri", sm_context_create_data->sm_context_status_uri) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed [sm_context_status_uri]");
|
||||
goto end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue