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
d9521c5c
Commit
d9521c5c
authored
Mar 20, 2023
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix get Kamf function
parent
d8e22cb6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/contexts/nas_context.cpp
src/contexts/nas_context.cpp
+1
-1
src/contexts/nas_context.hpp
src/contexts/nas_context.hpp
+1
-1
No files found.
src/contexts/nas_context.cpp
View file @
d9521c5c
...
@@ -66,7 +66,7 @@ nas_context::~nas_context() {}
...
@@ -66,7 +66,7 @@ nas_context::~nas_context() {}
bool
nas_context
::
get_kamf
(
bool
nas_context
::
get_kamf
(
uint8_t
index
,
uint8_t
(
&
k
)[
AUTH_VECTOR_LENGTH_OCTETS
])
const
{
uint8_t
index
,
uint8_t
(
&
k
)[
AUTH_VECTOR_LENGTH_OCTETS
])
const
{
if
(
index
>=
MAX_5GS_AUTH_VECTORS
)
return
false
;
if
(
index
>=
MAX_5GS_AUTH_VECTORS
)
return
false
;
for
(
uint8_t
i
=
0
;
i
++
;
i
<
AUTH_VECTOR_LENGTH_OCTETS
)
{
for
(
uint8_t
i
=
0
;
i
<
AUTH_VECTOR_LENGTH_OCTETS
;
i
++
)
{
k
[
i
]
=
kamf
[
index
][
i
];
k
[
i
]
=
kamf
[
index
][
i
];
}
}
return
true
;
return
true
;
...
...
src/contexts/nas_context.hpp
View file @
d9521c5c
...
@@ -116,7 +116,7 @@ class nas_context {
...
@@ -116,7 +116,7 @@ class nas_context {
_5G_HE_AV_t
_5g_he_av
[
MAX_5GS_AUTH_VECTORS
];
// generated by UDM
_5G_HE_AV_t
_5g_he_av
[
MAX_5GS_AUTH_VECTORS
];
// generated by UDM
_5G_AV_t
_5g_av
[
MAX_5GS_AUTH_VECTORS
];
// generated by AUSF
_5G_AV_t
_5g_av
[
MAX_5GS_AUTH_VECTORS
];
// generated by AUSF
std
::
string
href
;
std
::
string
href
;
uint8_t
kamf
[
MAX_5GS_AUTH_VECTORS
][
32
];
uint8_t
kamf
[
MAX_5GS_AUTH_VECTORS
][
AUTH_VECTOR_LENGTH_OCTETS
];
std
::
optional
<
nas_secu_ctx
>
security_ctx
;
std
::
optional
<
nas_secu_ctx
>
security_ctx
;
bool
is_current_security_available
;
bool
is_current_security_available
;
int
registration_attempt_counter
;
// used to limit the subsequently reject
int
registration_attempt_counter
;
// used to limit the subsequently reject
...
...
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