Lines Matching +full:common +full:- +full:password

2  * EAP peer method: EAP-MD5 (RFC 3748 and RFC 1994)
3 * Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi>
11 #include "common.h"
18 /* No need for private data. However, must return non-NULL to indicate in eap_md5_init()
34 const u8 *pos, *challenge, *password; in eap_md5_process() local
38 password = eap_get_config_password(sm, &password_len); in eap_md5_process()
39 if (password == NULL) { in eap_md5_process()
40 wpa_printf(MSG_INFO, "EAP-MD5: Password not configured"); in eap_md5_process()
42 ret->ignore = true; in eap_md5_process()
48 wpa_printf(MSG_INFO, "EAP-MD5: Invalid frame (pos=%p len=%lu)", in eap_md5_process()
50 ret->ignore = true; in eap_md5_process()
56 * Value-Size (1 octet) | Value(Challenge) | Name(optional) in eap_md5_process()
59 if (challenge_len == 0 || challenge_len > len - 1) { in eap_md5_process()
60 wpa_printf(MSG_INFO, "EAP-MD5: Invalid challenge " in eap_md5_process()
63 ret->ignore = true; in eap_md5_process()
66 ret->ignore = false; in eap_md5_process()
68 wpa_hexdump(MSG_MSGDUMP, "EAP-MD5: Challenge", in eap_md5_process()
71 wpa_printf(MSG_DEBUG, "EAP-MD5: Generating Challenge Response"); in eap_md5_process()
72 ret->methodState = METHOD_DONE; in eap_md5_process()
73 ret->decision = DECISION_COND_SUCC; in eap_md5_process()
74 ret->allowNotifications = true; in eap_md5_process()
83 * Value-Size (1 octet) | Value(Response) | Name(optional) in eap_md5_process()
89 if (chap_md5(id, password, password_len, challenge, challenge_len, in eap_md5_process()
91 wpa_printf(MSG_INFO, "EAP-MD5: CHAP MD5 operation failed"); in eap_md5_process()
92 ret->ignore = true; in eap_md5_process()
96 wpa_hexdump(MSG_MSGDUMP, "EAP-MD5: Response", rpos, CHAP_MD5_LEN); in eap_md5_process()
109 return -1; in eap_peer_md5_register()
111 eap->init = eap_md5_init; in eap_peer_md5_register()
112 eap->deinit = eap_md5_deinit; in eap_peer_md5_register()
113 eap->process = eap_md5_process; in eap_peer_md5_register()