Lines Matching +full:otp +full:- +full:1
2 * EAP peer method: EAP-OTP (RFC 3748)
3 * Copyright (c) 2004-2006, Jouni Malinen <j@w1.fi>
17 /* No need for private data. However, must return non-NULL to indicate in eap_otp_init()
19 return (void *) 1; in eap_otp_init()
35 int otp; 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()
47 otp = 1; in eap_otp_process()
50 otp = 0; 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()
71 wpa_hexdump_ascii_key(MSG_MSGDUMP, "EAP-OTP: Response", in eap_otp_process()
74 if (otp) { in eap_otp_process()
75 wpa_printf(MSG_DEBUG, "EAP-OTP: Forgetting used password"); in eap_otp_process()
88 EAP_VENDOR_IETF, EAP_TYPE_OTP, "OTP"); in eap_peer_otp_register()
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()