Commit 510181bb authored by yangjian's avatar yangjian

BUG: Part of the Ausf code was accidentally deleted

parent 7914083c
...@@ -1730,6 +1730,14 @@ void amf_n1::authentication_response_handle(uint32_t ran_ue_ngap_id, ...@@ -1730,6 +1730,14 @@ void amf_n1::authentication_response_handle(uint32_t ran_ue_ngap_id,
Logger::amf_n1().warn( Logger::amf_n1().warn(
"Cannot receive AuthenticationResponseParameter (RES*)"); "Cannot receive AuthenticationResponseParameter (RES*)");
} else { } else {
if(amf_cfg.is_Nausf)
{
std::string data = bdata(resStar);
if(!_5g_aka_confirmation_from_ausf(nc,data))
isAuthOk = false;
}
else
{
// Get stored XRES* // Get stored XRES*
int secu_index = nc.get()->security_ctx->vector_pointer; int secu_index = nc.get()->security_ctx->vector_pointer;
uint8_t *hxresStar = nc.get()->_5g_av[secu_index].hxresStar; uint8_t *hxresStar = nc.get()->_5g_av[secu_index].hxresStar;
...@@ -1756,6 +1764,7 @@ void amf_n1::authentication_response_handle(uint32_t ran_ue_ngap_id, ...@@ -1756,6 +1764,7 @@ void amf_n1::authentication_response_handle(uint32_t ran_ue_ngap_id,
if (hxresStar[i] != hres[i]) isAuthOk = false; if (hxresStar[i] != hres[i]) isAuthOk = false;
} }
} }
}
// If success, start SMC procedure; else if failure, response registration // If success, start SMC procedure; else if failure, response registration
// reject message with corresponding cause // reject message with corresponding cause
if (!isAuthOk) { if (!isAuthOk) {
......
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