]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Print milenage inputs at DEBUG3
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 10 Dec 2017 12:22:47 +0000 (12:22 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 10 Dec 2017 12:22:47 +0000 (12:22 +0000)
These are as (if not more so) sensitive as passwords

src/modules/rlm_eap/lib/sim/vector.c

index 2b5f53beb6371f9fb531347eb2eea922b910ac33..7b81b104328c05799a405834929bfb6c53fbcf75 100644 (file)
@@ -426,6 +426,25 @@ static int vector_umts_from_ki(eap_session_t *eap_session, VALUE_PAIR *vps, fr_s
 
        switch (version) {
        case 4:
+               RDEBUG3("Milenage inputs");
+               RINDENT();
+               /*
+                *      Don't change colon indent, matches other messages later...
+                */
+               RHEXDUMP_INLINE(L_DBG_LVL_3,
+                               ki->vp_octets, SIM_MILENAGE_KI_SIZE,
+                               "Ki           :");
+               RHEXDUMP_INLINE(L_DBG_LVL_3,
+                               opc->vp_octets, SIM_MILENAGE_OPC_SIZE,
+                               "OPc          :");
+               RHEXDUMP_INLINE(L_DBG_LVL_3,
+                               sqn_p, SIM_MILENAGE_SQN_SIZE,
+                               "SQN          :");
+               RHEXDUMP_INLINE(L_DBG_LVL_3,
+                               amf_p, SIM_MILENAGE_AMF_SIZE,
+                               "AMF          :");
+               REXDENT();
+
                if (milenage_umts_generate(keys->umts.vector.autn,
                                           keys->umts.vector.ik, keys->umts.vector.ck, keys->umts.vector.xres,
                                           opc->vp_octets, amf_p, ki->vp_octets,