Skip to content

Commit f576835

Browse files
committed
teap: add debugging to output the Compound-MAC for both MSK/EMSK
1 parent 16e03fc commit f576835

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/modules/rlm_eap/types/rlm_eap_teap/eap_teap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,10 @@ static void eap_teap_append_crypto_binding(REQUEST *request, tls_session_t *tls_
314314

315315
const EVP_MD *md = SSL_CIPHER_get_handshake_digest(SSL_get_current_cipher(tls_session->ssl));
316316
HMAC(md, &t->imck_msk.cmk, EAP_TEAP_CMK_LEN, buf, buflen, mac_msk, &maclen);
317+
RDEBUGHEX("Phase 2: Compound MAC (MSK)", mac_msk, maclen);
317318
if (t->imck_emsk_available) {
318319
HMAC(md, &t->imck_emsk.cmk, EAP_TEAP_CMK_LEN, buf, buflen, mac_emsk, &maclen);
320+
RDEBUGHEX("Phase 2: Compound MAC (EMSK)", mac_emsk, maclen);
319321
}
320322
memcpy(cbb->binding.msk_compound_mac, &mac_msk, sizeof(cbb->binding.msk_compound_mac));
321323
if (t->imck_emsk_available) {

0 commit comments

Comments
 (0)