Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
UERANSIM
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
Libraries
UERANSIM
Commits
c50e6308
Commit
c50e6308
authored
Apr 26, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE authentication procedure improvements
parent
68448016
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
src/ue/nas/mm/auth.cpp
src/ue/nas/mm/auth.cpp
+15
-5
No files found.
src/ue/nas/mm/auth.cpp
View file @
c50e6308
...
@@ -222,18 +222,30 @@ void NasMm::receiveAuthenticationRequestEap(const nas::AuthenticationRequest &ms
...
@@ -222,18 +222,30 @@ void NasMm::receiveAuthenticationRequestEap(const nas::AuthenticationRequest &ms
void
NasMm
::
receiveAuthenticationRequest5gAka
(
const
nas
::
AuthenticationRequest
&
msg
)
void
NasMm
::
receiveAuthenticationRequest5gAka
(
const
nas
::
AuthenticationRequest
&
msg
)
{
{
auto
sendFailure
=
[
this
](
nas
::
EMmCause
cause
)
{
auto
sendFailure
=
[
this
](
nas
::
EMmCause
cause
,
std
::
optional
<
OctetString
>
&&
auts
=
std
::
nullopt
)
{
if
(
cause
==
nas
::
EMmCause
::
SYNCH_FAILURE
)
m_logger
->
debug
(
"Sending Authentication Failure due to SQN out of range"
);
else
m_logger
->
err
(
"Sending Authentication Failure with cause [%s]"
,
nas
::
utils
::
EnumToString
(
cause
));
m_logger
->
err
(
"Sending Authentication Failure with cause [%s]"
,
nas
::
utils
::
EnumToString
(
cause
));
// Clear parameters stored in volatile memory of ME
m_usim
->
m_rand
=
{};
m_usim
->
m_rand
=
{};
m_usim
->
m_res
=
{};
m_usim
->
m_res
=
{};
m_usim
->
m_resStar
=
{};
m_usim
->
m_resStar
=
{};
// Stop T3516 if running
m_timers
->
t3516
.
stop
();
m_timers
->
t3516
.
stop
();
// Send Authentication Failure
nas
::
AuthenticationFailure
resp
{};
nas
::
AuthenticationFailure
resp
{};
resp
.
mmCause
.
value
=
cause
;
resp
.
mmCause
.
value
=
cause
;
if
(
auts
.
has_value
())
{
resp
.
authenticationFailureParameter
=
{};
resp
.
authenticationFailureParameter
->
rawData
=
std
::
move
(
*
auts
);
}
sendNasMessage
(
resp
);
sendNasMessage
(
resp
);
};
};
...
@@ -325,9 +337,7 @@ void NasMm::receiveAuthenticationRequest5gAka(const nas::AuthenticationRequest &
...
@@ -325,9 +337,7 @@ void NasMm::receiveAuthenticationRequest5gAka(const nas::AuthenticationRequest &
}
}
else
if
(
autnCheck
==
EAutnValidationRes
::
SYNCHRONISATION_FAILURE
)
else
if
(
autnCheck
==
EAutnValidationRes
::
SYNCHRONISATION_FAILURE
)
{
{
// TODO
sendFailure
(
nas
::
EMmCause
::
SYNCH_FAILURE
);
m_logger
->
err
(
"SYNCHRONISATION_FAILURE case not implemented yet in AUTN validation"
);
sendFailure
(
nas
::
EMmCause
::
UNSPECIFIED_PROTOCOL_ERROR
);
}
}
else
else
{
{
...
...
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