forked from acouzens/open5gs
Fix typo and remove trailing whitespaces in nas-security
This commit is contained in:
parent
902a348f1d
commit
d5eff9e24a
|
@ -53,7 +53,7 @@ ogs_pkbuf_t *nas_5gs_security_encode(
|
||||||
ciphered = 1;
|
ciphered = 1;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ogs_error("Not implemented(securiry header type:0x%x)",
|
ogs_error("Not implemented(security header type:0x%x)",
|
||||||
message->h.security_header_type);
|
message->h.security_header_type);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,7 @@ ogs_pkbuf_t *nas_5gs_security_encode(
|
||||||
return new;
|
return new;
|
||||||
}
|
}
|
||||||
|
|
||||||
int nas_5gs_security_decode(amf_ue_t *amf_ue,
|
int nas_5gs_security_decode(amf_ue_t *amf_ue,
|
||||||
ogs_nas_security_header_type_t security_header_type, ogs_pkbuf_t *pkbuf)
|
ogs_nas_security_header_type_t security_header_type, ogs_pkbuf_t *pkbuf)
|
||||||
{
|
{
|
||||||
ogs_assert(amf_ue);
|
ogs_assert(amf_ue);
|
||||||
|
@ -137,7 +137,7 @@ int nas_5gs_security_decode(amf_ue_t *amf_ue,
|
||||||
if (amf_ue->selected_int_algorithm == 0)
|
if (amf_ue->selected_int_algorithm == 0)
|
||||||
security_header_type.integrity_protected = 0;
|
security_header_type.integrity_protected = 0;
|
||||||
|
|
||||||
if (security_header_type.ciphered ||
|
if (security_header_type.ciphered ||
|
||||||
security_header_type.integrity_protected) {
|
security_header_type.integrity_protected) {
|
||||||
ogs_nas_5gs_security_header_t *h = NULL;
|
ogs_nas_5gs_security_header_t *h = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue