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
4ed0fefa
Commit
4ed0fefa
authored
Aug 27, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix_nea2' into 'develop'
Fix issue for NEA2 See merge request oai/cn5g/oai-cn5g-amf!51
parents
0a81fef3
55c6ee42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+10
-4
No files found.
src/amf-app/amf_n1.cpp
View file @
4ed0fefa
...
@@ -347,7 +347,8 @@ void amf_n1::handle_itti_message(itti_uplink_nas_data_ind& nas_data_ind) {
...
@@ -347,7 +347,8 @@ void amf_n1::handle_itti_message(itti_uplink_nas_data_ind& nas_data_ind) {
(
uint8_t
*
)
bdata
(
recved_nas_msg
)
+
6
,
blength
(
recved_nas_msg
)
-
6
,
(
uint8_t
*
)
bdata
(
recved_nas_msg
)
+
6
,
blength
(
recved_nas_msg
)
-
6
,
mac32
))
{
mac32
))
{
// IA0_5G
// IA0_5G
// TODO:
decoded_plain_msg
=
blk2bstr
(
(
uint8_t
*
)
bdata
(
recved_nas_msg
)
+
7
,
blength
(
recved_nas_msg
)
-
7
);
}
else
{
}
else
{
bool
isMatched
=
false
;
bool
isMatched
=
false
;
uint8_t
*
buf
=
(
uint8_t
*
)
bdata
(
recved_nas_msg
);
uint8_t
*
buf
=
(
uint8_t
*
)
bdata
(
recved_nas_msg
);
...
@@ -375,7 +376,7 @@ void amf_n1::handle_itti_message(itti_uplink_nas_data_ind& nas_data_ind) {
...
@@ -375,7 +376,7 @@ void amf_n1::handle_itti_message(itti_uplink_nas_data_ind& nas_data_ind) {
}
}
}
break
;
}
break
;
default:
{
default:
{
Logger
::
amf_n1
().
error
(
"
unknown NAS msg t
ype"
);
Logger
::
amf_n1
().
error
(
"
Unknown NAS Message T
ype"
);
return
;
return
;
}
}
}
}
...
@@ -2457,8 +2458,13 @@ bool amf_n1::nas_message_cipher_protected(
...
@@ -2457,8 +2458,13 @@ bool amf_n1::nas_message_cipher_protected(
case
EA2_128_5G
:
{
case
EA2_128_5G
:
{
Logger
::
amf_n1
().
debug
(
"Cipher protected with EA2_128_5G"
);
Logger
::
amf_n1
().
debug
(
"Cipher protected with EA2_128_5G"
);
nas_algorithms
::
nas_stream_encrypt_nea2
(
&
stream_cipher
,
(
uint8_t
*
)
bdata
(
output_nas
));
uint32_t
len
=
stream_cipher
.
blength
>>
3
;
if
((
stream_cipher
.
blength
&
0x7
)
>
0
)
len
+=
1
;
uint8_t
*
ciphered
=
(
uint8_t
*
)
malloc
(
len
);
nas_algorithms
::
nas_stream_encrypt_nea2
(
&
stream_cipher
,
ciphered
);
output_nas
=
blk2bstr
(
ciphered
,
len
);
free
(
ciphered
);
}
break
;
}
break
;
}
}
return
true
;
return
true
;
...
...
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