Commit 053aba61 authored by aligungr's avatar aligungr

USIM validation on authentication procedure

parent 7a4a2464
......@@ -17,6 +17,9 @@ namespace nr::ue
void NasMm::receiveAuthenticationRequest(const nas::AuthenticationRequest &msg)
{
if (!m_validSim)
m_logger->warn("Authentication request is ignored. USIM is invalid");
if (msg.eapMessage.has_value())
receiveAuthenticationRequestEap(msg);
else
......@@ -428,5 +431,4 @@ crypto::milenage::Milenage NasMm::calculateMilenage(const OctetString &sqn, cons
return crypto::milenage::Calculate(opc, m_base->config->key, rand, sqn, m_base->config->amf);
}
}
\ No newline at end of file
} // namespace nr::ue
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment