Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Log errors to check 4-way handshake failure #160

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/common/wpa_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,10 @@ int wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label,
} else {
wpa_printf(MSG_DEBUG, "WPA: PTK derivation using PRF(SHA1)");
if (sha1_prf(pmk, pmk_len, label, data, data_len, tmp,
ptk_len) < 0)
ptk_len) < 0) {
wpa_printf(MSG_ERROR, "No memory for PRF, PTK derivation failed");
return -1;
}
}

wpa_printf(MSG_DEBUG, "WPA: PTK derivation - A1=" MACSTR " A2=" MACSTR,
Expand Down
1 change: 1 addition & 0 deletions src/crypto/crypto_mbedtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ static int hmac_vector(

md_info = mbedtls_md_info_from_type(md_type);
if (!md_info) {
wpa_printf(MSG_ERROR, "mbedtls_md_info_from_type() failed");
return -1;
}

Expand Down
Loading