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
e0dd70cf
Commit
e0dd70cf
authored
Feb 09, 2022
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup
parent
ab969441
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/nas/ies/5GSMobilityIdentity.cpp
src/nas/ies/5GSMobilityIdentity.cpp
+2
-0
src/nas/ies/NSSAI.cpp
src/nas/ies/NSSAI.cpp
+3
-3
No files found.
src/nas/ies/5GSMobilityIdentity.cpp
View file @
e0dd70cf
...
@@ -609,6 +609,8 @@ int _5GSMobilityIdentity::suci_decodefrombuffer(
...
@@ -609,6 +609,8 @@ int _5GSMobilityIdentity::suci_decodefrombuffer(
decoded_size
++
;
decoded_size
++
;
supi_format_imsi
->
homeNetworkPKI
=
octet
;
supi_format_imsi
->
homeNetworkPKI
=
octet
;
string
msin
=
""
;
string
msin
=
""
;
// TODO: get MSIN according to Protection Scheme ID to support
// ECIES scheme profile A/B
int
digit_low
=
0
,
digit_high
=
0
,
numMsin
=
ie_len
-
decoded_size
;
int
digit_low
=
0
,
digit_high
=
0
,
numMsin
=
ie_len
-
decoded_size
;
for
(
int
i
=
0
;
i
<
numMsin
;
i
++
)
{
for
(
int
i
=
0
;
i
<
numMsin
;
i
++
)
{
octet
=
*
(
buf
+
decoded_size
);
octet
=
*
(
buf
+
decoded_size
);
...
...
src/nas/ies/NSSAI.cpp
View file @
e0dd70cf
...
@@ -92,15 +92,15 @@ int NSSAI::encode2buffer(uint8_t* buf, int len) {
...
@@ -92,15 +92,15 @@ int NSSAI::encode2buffer(uint8_t* buf, int len) {
*
(
buf
+
encoded_size
)
=
(
S_NSSAI
.
at
(
i
).
sd
&
0x00ff0000
)
>>
16
;
*
(
buf
+
encoded_size
)
=
(
S_NSSAI
.
at
(
i
).
sd
&
0x00ff0000
)
>>
16
;
encoded_size
++
;
encoded_size
++
;
Logger
::
nas_mm
().
debug
(
Logger
::
nas_mm
().
debug
(
"Encoded NSSAI
len
(%x)"
,
*
(
buf
+
encoded_size
-
1
));
"Encoded NSSAI
SD first octet
(%x)"
,
*
(
buf
+
encoded_size
-
1
));
*
(
buf
+
encoded_size
)
=
(
S_NSSAI
.
at
(
i
).
sd
&
0x0000ff00
)
>>
8
;
*
(
buf
+
encoded_size
)
=
(
S_NSSAI
.
at
(
i
).
sd
&
0x0000ff00
)
>>
8
;
encoded_size
++
;
encoded_size
++
;
Logger
::
nas_mm
().
debug
(
Logger
::
nas_mm
().
debug
(
"Encoded NSSAI
len
(%x)"
,
*
(
buf
+
encoded_size
-
1
));
"Encoded NSSAI
SD second octet
(%x)"
,
*
(
buf
+
encoded_size
-
1
));
*
(
buf
+
encoded_size
)
=
S_NSSAI
.
at
(
i
).
sd
&
0x000000ff
;
*
(
buf
+
encoded_size
)
=
S_NSSAI
.
at
(
i
).
sd
&
0x000000ff
;
encoded_size
++
;
encoded_size
++
;
Logger
::
nas_mm
().
debug
(
Logger
::
nas_mm
().
debug
(
"Encoded NSSAI
len
(%x)"
,
*
(
buf
+
encoded_size
-
1
));
"Encoded NSSAI
SD third octet
(%x)"
,
*
(
buf
+
encoded_size
-
1
));
}
}
if
(
S_NSSAI
.
at
(
i
).
mHplmnSst
!=
-
1
)
{
if
(
S_NSSAI
.
at
(
i
).
mHplmnSst
!=
-
1
)
{
len_s_nssai
+=
1
;
len_s_nssai
+=
1
;
...
...
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