From 83995b5099c29d741106d47ae0ea7ef0a3b4820f Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 30 Aug 2017 15:13:37 -0700 Subject: [PATCH] unit: update SIM unit tests to derive MAC changes --- unit/test-eap-sim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit/test-eap-sim.c b/unit/test-eap-sim.c index 79be2285..9aa61362 100644 --- a/unit/test-eap-sim.c +++ b/unit/test-eap-sim.c @@ -185,7 +185,7 @@ static void test_calc_mac(const void *data) memcpy(pkt + pos, ex_sres, 12); - eap_sim_derive_mac(pkt, sizeof(ex_pkt) + 12, ex_k_aut, + eap_sim_derive_mac(EAP_TYPE_SIM, pkt, sizeof(ex_pkt) + 12, ex_k_aut, pkt + pos - EAP_SIM_MAC_LEN); assert(!memcmp(ex_mac, pkt + pos - EAP_SIM_MAC_LEN, EAP_SIM_MAC_LEN));