Lines Matching refs:sm

21 static void * eap_gtc_init(struct eap_sm *sm)  in eap_gtc_init()  argument
31 if (sm->m && sm->m->vendor == EAP_VENDOR_IETF && in eap_gtc_init()
32 sm->m->method == EAP_TYPE_FAST) { in eap_gtc_init()
43 static void eap_gtc_reset(struct eap_sm *sm, void *priv) in eap_gtc_reset() argument
50 static struct wpabuf * eap_gtc_buildReq(struct eap_sm *sm, void *priv, u8 id) in eap_gtc_buildReq() argument
77 static bool eap_gtc_check(struct eap_sm *sm, void *priv, in eap_gtc_check() argument
93 static void eap_gtc_process(struct eap_sm *sm, void *priv, in eap_gtc_process() argument
131 if (sm->identity && sm->require_identity_match && in eap_gtc_process()
132 (pos2 - pos != (int) sm->identity_len || in eap_gtc_process()
133 os_memcmp(pos, sm->identity, sm->identity_len))) { in eap_gtc_process()
138 sm->identity, sm->identity_len); in eap_gtc_process()
142 os_free(sm->identity); in eap_gtc_process()
143 sm->identity_len = pos2 - pos; in eap_gtc_process()
144 sm->identity = os_memdup(pos, sm->identity_len); in eap_gtc_process()
145 if (sm->identity == NULL) { in eap_gtc_process()
151 if (eap_user_get(sm, sm->identity, sm->identity_len, 1) != 0) { in eap_gtc_process()
155 sm->identity, sm->identity_len); in eap_gtc_process()
168 if (sm->user == NULL || sm->user->password == NULL || in eap_gtc_process()
169 sm->user->password_hash) { in eap_gtc_process()
176 if (rlen != sm->user->password_len || in eap_gtc_process()
177 os_memcmp_const(pos, sm->user->password, rlen) != 0) { in eap_gtc_process()
187 static bool eap_gtc_isDone(struct eap_sm *sm, void *priv) in eap_gtc_isDone() argument
194 static bool eap_gtc_isSuccess(struct eap_sm *sm, void *priv) in eap_gtc_isSuccess() argument