SIM/AKA/Request/Reauthentication AT_MAC does not include NONCE_S, only the response
This commit is contained in:
@@ -366,7 +366,7 @@ static status_t process_reauthentication(private_eap_aka_peer_t *this,
|
|||||||
*out = create_client_error(this, in->get_identifier(in));
|
*out = create_client_error(this, in->get_identifier(in));
|
||||||
return NEED_MORE;
|
return NEED_MORE;
|
||||||
}
|
}
|
||||||
if (!in->verify(in, nonce))
|
if (!in->verify(in, chunk_empty))
|
||||||
{
|
{
|
||||||
*out = create_client_error(this, in->get_identifier(in));
|
*out = create_client_error(this, in->get_identifier(in));
|
||||||
return NEED_MORE;
|
return NEED_MORE;
|
||||||
|
|||||||
@@ -244,8 +244,7 @@ static status_t reauthenticate(private_eap_aka_server_t *this,
|
|||||||
next->get_encoding(next));
|
next->get_encoding(next));
|
||||||
next->destroy(next);
|
next->destroy(next);
|
||||||
}
|
}
|
||||||
/* create AT_MAC over EAP-Message|NONCE_S */
|
*out = message->generate(message, chunk_empty);
|
||||||
*out = message->generate(message, this->nonce);
|
|
||||||
message->destroy(message);
|
message->destroy(message);
|
||||||
|
|
||||||
this->pending = SIM_REAUTHENTICATION;
|
this->pending = SIM_REAUTHENTICATION;
|
||||||
|
|||||||
@@ -429,7 +429,7 @@ static status_t process_reauthentication(private_eap_sim_peer_t *this,
|
|||||||
SIM_UNABLE_TO_PROCESS);
|
SIM_UNABLE_TO_PROCESS);
|
||||||
return NEED_MORE;
|
return NEED_MORE;
|
||||||
}
|
}
|
||||||
if (!in->verify(in, nonce))
|
if (!in->verify(in, chunk_empty))
|
||||||
{
|
{
|
||||||
*out = create_client_error(this, in->get_identifier(in),
|
*out = create_client_error(this, in->get_identifier(in),
|
||||||
SIM_UNABLE_TO_PROCESS);
|
SIM_UNABLE_TO_PROCESS);
|
||||||
|
|||||||
@@ -172,8 +172,7 @@ static status_t reauthenticate(private_eap_sim_server_t *this,
|
|||||||
next->get_encoding(next));
|
next->get_encoding(next));
|
||||||
next->destroy(next);
|
next->destroy(next);
|
||||||
}
|
}
|
||||||
/* create AT_MAC over EAP-Message|NONCE_S */
|
*out = message->generate(message, chunk_empty);
|
||||||
*out = message->generate(message, this->nonce);
|
|
||||||
message->destroy(message);
|
message->destroy(message);
|
||||||
|
|
||||||
this->pending = SIM_REAUTHENTICATION;
|
this->pending = SIM_REAUTHENTICATION;
|
||||||
|
|||||||
Reference in New Issue
Block a user