Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-AMF
Commits
f7795476
Commit
f7795476
authored
Aug 30, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix NIA0
parent
4b0650cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+11
-0
No files found.
src/amf-app/amf_n1.cpp
View file @
f7795476
...
...
@@ -378,6 +378,15 @@ void amf_n1::handle_itti_message(itti_uplink_nas_data_ind& nas_data_ind) {
}
*/
}
bstring
ciphered
=
blk2bstr
(
(
uint8_t
*
)
bdata
(
recved_nas_msg
)
+
7
,
blength
(
recved_nas_msg
)
-
7
);
if
(
!
nas_message_cipher_protected
(
nc
.
get
()
->
security_ctx
,
NAS_MESSAGE_UPLINK
,
ciphered
,
decoded_plain_msg
))
{
Logger
::
amf_n1
().
error
(
"Decrypt NAS message failure"
);
return
;
}
}
break
;
default:
{
Logger
::
amf_n1
().
error
(
"Unknown NAS Message Type"
);
...
...
@@ -388,6 +397,7 @@ void amf_n1::handle_itti_message(itti_uplink_nas_data_ind& nas_data_ind) {
// decoded_plain_msg = blk2bstr(
// (uint8_t*) bdata(recved_nas_msg) + 7, blength(recved_nas_msg) - 7);
/*
bstring ciphered = blk2bstr(
(uint8_t*) bdata(recved_nas_msg) + 7, blength(recved_nas_msg) - 7);
if (!nas_message_cipher_protected(
...
...
@@ -396,6 +406,7 @@ void amf_n1::handle_itti_message(itti_uplink_nas_data_ind& nas_data_ind) {
Logger::amf_n1().error("Decrypt NAS message failure");
return;
}
*/
if
(
nas_data_ind
.
is_nas_signalling_estab_req
)
{
Logger
::
amf_n1
().
debug
(
"Received NAS signalling establishment request..."
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment