RADIUS server: Allow EAP methods to log into SQLite DB
This extends RADIUS server logging capabilities to allow EAP server methods to add log entries. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
8a57da7e28
commit
01f7fe10ef
8 changed files with 68 additions and 1 deletions
|
@ -290,6 +290,7 @@ static void eap_mschapv2_process_response(struct eap_sm *sm,
|
|||
const u8 *username, *user;
|
||||
size_t username_len, user_len;
|
||||
int res;
|
||||
char *buf;
|
||||
|
||||
pos = eap_hdr_validate(EAP_VENDOR_IETF, EAP_TYPE_MSCHAPV2, respData,
|
||||
&len);
|
||||
|
@ -329,6 +330,13 @@ static void eap_mschapv2_process_response(struct eap_sm *sm,
|
|||
wpa_printf(MSG_MSGDUMP, "EAP-MSCHAPV2: Flags 0x%x", flags);
|
||||
wpa_hexdump_ascii(MSG_MSGDUMP, "EAP-MSCHAPV2: Name", name, name_len);
|
||||
|
||||
buf = os_malloc(name_len * 3 + 1);
|
||||
if (buf) {
|
||||
printf_encode(buf, name_len * 3 + 1, name, name_len);
|
||||
eap_log_msg(sm, "EAP-MSCHAPV2 Name '%s'", buf);
|
||||
os_free(buf);
|
||||
}
|
||||
|
||||
/* MSCHAPv2 does not include optional domain name in the
|
||||
* challenge-response calculation, so remove domain prefix
|
||||
* (if present). */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue