Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
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
spbro
OpenXG-RAN
Commits
9dae4a94
Commit
9dae4a94
authored
May 04, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/oaiUe_AuthReq_Fix' into integration_2022_wk18
parents
0221499c
139d20a9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
openair3/NAS/UE/EMM/Authentication.c
openair3/NAS/UE/EMM/Authentication.c
+5
-2
openair3/NAS/UE/EMM/Authentication.h
openair3/NAS/UE/EMM/Authentication.h
+2
-0
No files found.
openair3/NAS/UE/EMM/Authentication.c
View file @
9dae4a94
...
@@ -178,12 +178,15 @@ int emm_proc_authentication_request(nas_user_t *user, int native_ksi, int ksi,
...
@@ -178,12 +178,15 @@ int emm_proc_authentication_request(nas_user_t *user, int native_ksi, int ksi,
OctetString
ik
=
{
AUTH_IK_SIZE
,
authentication_data
->
ik
};
OctetString
ik
=
{
AUTH_IK_SIZE
,
authentication_data
->
ik
};
OctetString
res
=
{
AUTH_RES_SIZE
,
authentication_data
->
res
};
OctetString
res
=
{
AUTH_RES_SIZE
,
authentication_data
->
res
};
if
(
memcmp
(
authentication_data
->
rand
,
rand
->
value
,
AUTH_CK_SIZE
)
!=
0
)
{
if
((
memcmp
(
authentication_data
->
rand
,
rand
->
value
,
AUTH_CK_SIZE
)
!=
0
)
||
(
authentication_data
->
auth_process_started
==
FALSE
))
{
/*
/*
* There is no valid stored RAND in the ME or the stored RAND is
* There is no valid stored RAND in the ME or the stored RAND is
* different from the new received value in the AUTHENTICATION
* different from the new received value in the AUTHENTICATION
* REQUEST message
* REQUEST message OR if this is first time UE starting the
* Authentication process
*/
*/
authentication_data
->
auth_process_started
=
TRUE
;
OctetString
auts
;
OctetString
auts
;
auts
.
length
=
0
;
auts
.
length
=
0
;
auts
.
value
=
(
uint8_t
*
)
malloc
(
AUTH_AUTS_SIZE
);
auts
.
value
=
(
uint8_t
*
)
malloc
(
AUTH_AUTS_SIZE
);
...
...
openair3/NAS/UE/EMM/Authentication.h
View file @
9dae4a94
...
@@ -18,6 +18,8 @@ typedef struct {
...
@@ -18,6 +18,8 @@ typedef struct {
unsigned
char
mac_count
:
2
;
/* MAC failure counter (#20) */
unsigned
char
mac_count
:
2
;
/* MAC failure counter (#20) */
unsigned
char
umts_count
:
2
;
/* UMTS challenge failure counter (#26) */
unsigned
char
umts_count
:
2
;
/* UMTS challenge failure counter (#26) */
unsigned
char
sync_count
:
2
;
/* Sync failure counter (#21) */
unsigned
char
sync_count
:
2
;
/* Sync failure counter (#21) */
unsigned
char
auth_process_started
:
1
;
/* Authentication started */
unsigned
char
reserve
:
1
;
/* For future use, byte aligned */
}
authentication_data_t
;
}
authentication_data_t
;
#endif
#endif
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