Lines Matching +full:otp +full:- +full:1
2 * EAP peer method: EAP-GTC (RFC 3748)
3 * Copyright (c) 2004-2006, Jouni Malinen <j@w1.fi>
27 if (sm->m && sm->m->vendor == EAP_VENDOR_IETF && in eap_gtc_init()
28 sm->m->method == EAP_TYPE_FAST) { in eap_gtc_init()
29 wpa_printf(MSG_DEBUG, "EAP-GTC: EAP-FAST tunnel - use prefix " in eap_gtc_init()
31 data->prefix = 1; in eap_gtc_init()
52 int otp; in eap_gtc_process() local
57 ret->ignore = true; in eap_gtc_process()
62 wpa_hexdump_ascii(MSG_MSGDUMP, "EAP-GTC: Request message", pos, len); in eap_gtc_process()
63 if (data->prefix && in eap_gtc_process()
65 wpa_printf(MSG_DEBUG, "EAP-GTC: Challenge did not start with " in eap_gtc_process()
70 * error case which seems to use EAP-MSCHAPv2 like error in eap_gtc_process()
71 * reporting with EAP-GTC inside EAP-FAST tunnel. */ in eap_gtc_process()
79 otp = 1; in eap_gtc_process()
82 otp = 0; in eap_gtc_process()
86 wpa_printf(MSG_INFO, "EAP-GTC: Password not configured"); in eap_gtc_process()
88 ret->ignore = true; in eap_gtc_process()
92 ret->ignore = false; in eap_gtc_process()
94 ret->methodState = data->prefix ? METHOD_MAY_CONT : METHOD_DONE; in eap_gtc_process()
95 ret->decision = DECISION_COND_SUCC; in eap_gtc_process()
96 ret->allowNotifications = false; in eap_gtc_process()
102 if (data->prefix) in eap_gtc_process()
103 plen += 9 + identity_len + 1; in eap_gtc_process()
108 if (data->prefix) { in eap_gtc_process()
114 wpa_hexdump_ascii_key(MSG_MSGDUMP, "EAP-GTC: Response", in eap_gtc_process()
116 1, plen); in eap_gtc_process()
118 if (otp) { in eap_gtc_process()
119 wpa_printf(MSG_DEBUG, "EAP-GTC: Forgetting used password"); in eap_gtc_process()
134 return -1; in eap_peer_gtc_register()
136 eap->init = eap_gtc_init; in eap_peer_gtc_register()
137 eap->deinit = eap_gtc_deinit; in eap_peer_gtc_register()
138 eap->process = eap_gtc_process; in eap_peer_gtc_register()