]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Minor fixes
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 13 Dec 2017 17:55:39 +0000 (17:55 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 13 Dec 2017 17:55:39 +0000 (17:55 +0000)
src/modules/rlm_eap/lib/sim/milenage.c
src/modules/rlm_eap/types/rlm_eap_sim/rlm_eap_sim.c

index f664595c37dcee248c9fb01abf0ba81ac505049a..5c3118a80de7adf3f8f5703a4b0c0e770b1b23b2 100644 (file)
@@ -287,7 +287,7 @@ int milenage_umts_generate(uint8_t autn[MILENAGE_AUTN_SIZE],
            (milenage_f2345(res, ik, ck, ak_buff, NULL, opc, ki, rand) < 0)) return -1;
 
        /*
-        *      AUTN = (SQN ^ AK) || AMF || MAC
+        *      AUTN = (SQN ^ AK) || AMF || MAC_A
         */
        for (i = 0; i < sizeof(sqn_buff); i++) *p++ = sqn_buff[i] ^ ak_buff[i];
        memcpy(p, amf, MILENAGE_AMF_SIZE);
index a4d5b6783e6a59233356e89d68d1920e1407ea73..627a57ee3494bf74ca3ec0ca5ae431f60eb0ab33 100644 (file)
@@ -630,7 +630,7 @@ static int process_eap_sim_challenge(eap_session_t *eap_session, VALUE_PAIR *vps
         *      send a success notification, otherwise send a
         *      normal EAP-Success.
         */
-       if (fr_pair_find_by_child_num(vps, dict_aka_root, FR_EAP_SIM_RESULT_IND, TAG_ANY)) {
+       if (fr_pair_find_by_child_num(vps, dict_sim_root, FR_EAP_SIM_RESULT_IND, TAG_ANY)) {
                eap_sim_state_enter(eap_session, EAP_SIM_SERVER_SUCCESS_NOTIFICATION);
        } else {
                eap_sim_state_enter(eap_session, EAP_SIM_SERVER_SUCCESS);
@@ -740,7 +740,7 @@ static rlm_rcode_t mod_process(UNUSED void *arg, eap_session_t *eap_session)
                {
                        char buff[20];
 
-                       vp = fr_pair_afrom_child_num(from_peer, dict_aka_root, FR_EAP_SIM_NOTIFICATION);
+                       vp = fr_pair_afrom_child_num(from_peer, dict_sim_root, FR_EAP_SIM_NOTIFICATION);
                        if (!vp) {
                                REDEBUG2("Received SIM-Notification with no notification code");
                                eap_sim_state_enter(eap_session, EAP_SIM_SERVER_GENERAL_FAILURE_NOTIFICATION);
@@ -792,7 +792,7 @@ static rlm_rcode_t mod_process(UNUSED void *arg, eap_session_t *eap_session)
                {
                        char buff[20];
 
-                       vp = fr_pair_find_by_child_num(from_peer, dict_aka_root, FR_EAP_SIM_CLIENT_ERROR_CODE, TAG_ANY);
+                       vp = fr_pair_find_by_child_num(from_peer, dict_sim_root, FR_EAP_SIM_CLIENT_ERROR_CODE, TAG_ANY);
                        if (!vp) {
                                REDEBUG("EAP-SIM Peer rejected SIM-Challenge with client-error message but "
                                        "has not supplied a client error code");