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
6a9f533b
Commit
6a9f533b
authored
Apr 26, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Authentication abnormal case handling
parent
64374bad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
src/ue/nas/mm/auth.cpp
src/ue/nas/mm/auth.cpp
+8
-0
src/ue/nas/mm/mm.hpp
src/ue/nas/mm/mm.hpp
+1
-0
No files found.
src/ue/nas/mm/auth.cpp
View file @
6a9f533b
...
...
@@ -484,4 +484,12 @@ crypto::milenage::Milenage NasMm::calculateMilenage(const OctetString &sqn, cons
return
crypto
::
milenage
::
Calculate
(
opc
,
m_base
->
config
->
key
,
rand
,
sqn
,
amf
);
}
void
NasMm
::
networkFailingTheAuth
()
{
m_logger
->
err
(
"Network failing the authentication check"
);
localReleaseConnection
();
// TODO: treat the active cell as barred
}
}
// namespace nr::ue
\ No newline at end of file
src/ue/nas/mm/mm.hpp
View file @
6a9f533b
...
...
@@ -116,6 +116,7 @@ class NasMm
void
receiveEapResponseMessage
(
const
eap
::
Eap
&
eap
);
EAutnValidationRes
validateAutn
(
const
OctetString
&
rand
,
const
OctetString
&
autn
);
crypto
::
milenage
::
Milenage
calculateMilenage
(
const
OctetString
&
sqn
,
const
OctetString
&
rand
,
bool
dummyAmf
);
void
networkFailingTheAuth
();
private:
/* Security */
void
receiveSecurityModeCommand
(
const
nas
::
SecurityModeCommand
&
msg
);
...
...
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