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-Simple
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
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
CommunityXG
OpenXG-AMF-Simple
Commits
0905be13
Commit
0905be13
authored
Aug 18, 2020
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for Security Command Reject
parent
cd24d349
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+5
-7
No files found.
src/amf-app/amf_n1.cpp
View file @
0905be13
...
@@ -586,19 +586,17 @@ void amf_n1::registration_request_handle(bool isNasSig, std::shared_ptr<nas_cont
...
@@ -586,19 +586,17 @@ void amf_n1::registration_request_handle(bool isNasSig, std::shared_ptr<nas_cont
uint8_t
_5g_mm_cap
=
regReq
->
get5GMMCapability
();
uint8_t
_5g_mm_cap
=
regReq
->
get5GMMCapability
();
if
(
_5g_mm_cap
==
-
1
)
{
if
(
_5g_mm_cap
==
-
1
)
{
Logger
::
amf_n1
().
warn
(
"No Optional IE 5GMMCapability available"
);
Logger
::
amf_n1
().
warn
(
"No Optional IE 5GMMCapability available"
);
}
else
{
nc
.
get
()
->
mmCapability
=
_5g_mm_cap
;
}
}
nc
.
get
()
->
mmCapability
=
_5g_mm_cap
;
//Get UE Security Capability IE (optional), not included for periodic registration updating procedure
//Get UE Security Capability IE (optional), not included for periodic registration updating procedure
uint8_t
encrypt_alg
=
{
0
};
uint8_t
encrypt_alg
=
{
0
};
uint8_t
integrity_alg
=
{
0
};
uint8_t
integrity_alg
=
{
0
};
if
(
!
regReq
->
getUeSecurityCapability
(
encrypt_alg
,
integrity_alg
))
{
if
(
!
regReq
->
getUeSecurityCapability
(
encrypt_alg
,
integrity_alg
))
{
Logger
::
amf_n1
().
warn
(
"No Optional IE UESecurityCapability available"
);
Logger
::
amf_n1
().
warn
(
"No Optional IE UESecurityCapability available"
);
}
else
{
}
nc
.
get
()
->
ueSecurityCapEnc
=
encrypt_alg
;
nc
.
get
()
->
ueSecurityCapEnc
=
encrypt_alg
;
nc
.
get
()
->
ueSecurityCapInt
=
integrity_alg
;
nc
.
get
()
->
ueSecurityCapInt
=
integrity_alg
;
}
//Get Requested NSSAI (Optional IE), if provided
//Get Requested NSSAI (Optional IE), if provided
std
::
vector
<
SNSSAI_t
>
requestedNssai
=
{};
std
::
vector
<
SNSSAI_t
>
requestedNssai
=
{};
...
...
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