Add security protect [#554]

This commit is contained in:
Sukchan Lee 2020-09-13 22:31:28 -04:00
parent 818f3139d4
commit c6718b96bb
1 changed files with 6 additions and 0 deletions

View File

@ -306,6 +306,12 @@ static void common_register_state(ogs_fsm_t *s, amf_event_t *e)
break;
case OGS_NAS_5GS_UL_NAS_TRANSPORT:
if (!h.integrity_protected || !SECURITY_CONTEXT_IS_VALID(amf_ue)) {
ogs_error("No Security Context");
OGS_FSM_TRAN(s, gmm_state_exception);
break;
}
gmm_handle_ul_nas_transport(
amf_ue, &nas_message->gmm.ul_nas_transport);
break;