Lines Matching +full:common +full:- +full:password
2 * EAP peer method: EAP-OTP (RFC 3748)
3 * Copyright (c) 2004-2006, Jouni Malinen <j@w1.fi>
11 #include "common.h"
17 /* No need for private data. However, must return non-NULL to indicate in eap_otp_init()
33 const u8 *pos, *password; in eap_otp_process() local
39 ret->ignore = true; in eap_otp_process()
42 wpa_hexdump_ascii(MSG_MSGDUMP, "EAP-OTP: Request message", in eap_otp_process()
45 password = eap_get_config_otp(sm, &password_len); in eap_otp_process()
46 if (password) in eap_otp_process()
49 password = eap_get_config_password(sm, &password_len); in eap_otp_process()
53 if (password == NULL) { in eap_otp_process()
54 wpa_printf(MSG_INFO, "EAP-OTP: Password not configured"); in eap_otp_process()
56 ret->ignore = true; in eap_otp_process()
60 ret->ignore = false; in eap_otp_process()
62 ret->methodState = METHOD_DONE; in eap_otp_process()
63 ret->decision = DECISION_COND_SUCC; in eap_otp_process()
64 ret->allowNotifications = false; in eap_otp_process()
70 wpabuf_put_data(resp, password, password_len); in eap_otp_process()
71 wpa_hexdump_ascii_key(MSG_MSGDUMP, "EAP-OTP: Response", in eap_otp_process()
72 password, password_len); in eap_otp_process()
75 wpa_printf(MSG_DEBUG, "EAP-OTP: Forgetting used password"); in eap_otp_process()
90 return -1; in eap_peer_otp_register()
92 eap->init = eap_otp_init; in eap_peer_otp_register()
93 eap->deinit = eap_otp_deinit; in eap_peer_otp_register()
94 eap->process = eap_otp_process; in eap_peer_otp_register()