Commit eb7fa25074 for strongswan.org

commit eb7fa250749b3979055e09312cd603f1a61d9aee
Author: Tobias Brunner <tobias@strongswan.org>
Date:   Wed Nov 18 08:33:58 2026 +0100

    eap-aka/sim-peer: Use correct chunk to create reauth identity

    The previous code only worked if AT_NEXT_REAUTH_ID was the last attribute
    in the message (which is the case if strongSwan is the server).  For AKA
    it was just copied from the SIM implementation.

    Closes strongswan/strongswan#3211

    Fixes: 15b65bf15df1 ("Ported pseudonym/reauth functionality to EAP-AKA")
    Fixes: 947b03fd0967 ("Use new identity constructor in EAP-SIM")

diff --git a/src/libcharon/plugins/eap_aka/eap_aka_peer.c b/src/libcharon/plugins/eap_aka/eap_aka_peer.c
index ab8494b17a..59ba3c5296 100644
--- a/src/libcharon/plugins/eap_aka/eap_aka_peer.c
+++ b/src/libcharon/plugins/eap_aka/eap_aka_peer.c
@@ -453,7 +453,7 @@ static status_t process_reauthentication(private_eap_aka_peer_t *this,
 		{
 			identification_t *reauth;

-			reauth = identification_create_from_data(data);
+			reauth = identification_create_from_data(id);
 			this->mgr->card_set_reauth(this->mgr, this->permanent, reauth,
 									   this->mk, this->counter);
 			reauth->destroy(reauth);
diff --git a/src/libcharon/plugins/eap_sim/eap_sim_peer.c b/src/libcharon/plugins/eap_sim/eap_sim_peer.c
index a7a4b26715..da0ee4f2f3 100644
--- a/src/libcharon/plugins/eap_sim/eap_sim_peer.c
+++ b/src/libcharon/plugins/eap_sim/eap_sim_peer.c
@@ -511,7 +511,7 @@ static status_t process_reauthentication(private_eap_sim_peer_t *this,
 		{
 			identification_t *reauth;

-			reauth = identification_create_from_data(data);
+			reauth = identification_create_from_data(id);
 			this->mgr->card_set_reauth(this->mgr, this->permanent, reauth,
 									   this->mk, this->counter);
 			reauth->destroy(reauth);