Home | History | Annotate | Download | only in eap_server

Lines Matching refs:sm

21 static void * eap_gtc_init(struct eap_sm *sm)
31 if (sm->m && sm->m->vendor == EAP_VENDOR_IETF &&
32 sm->m->method == EAP_TYPE_FAST) {
43 static void eap_gtc_reset(struct eap_sm *sm, void *priv)
50 static struct wpabuf * eap_gtc_buildReq(struct eap_sm *sm, void *priv, u8 id)
77 static Boolean eap_gtc_check(struct eap_sm *sm, void *priv,
93 static void eap_gtc_process(struct eap_sm *sm, void *priv,
131 if (sm->identity && sm->require_identity_match &&
132 (pos2 - pos != (int) sm->identity_len ||
133 os_memcmp(pos, sm->identity, sm->identity_len))) {
138 sm->identity, sm->identity_len);
142 os_free(sm->identity);
143 sm->identity_len = pos2 - pos;
144 sm->identity = os_malloc(sm->identity_len);
145 if (sm->identity == NULL) {
149 os_memcpy(sm->identity, pos, sm->identity_len);
152 if (eap_user_get(sm, sm->identity, sm->identity_len, 1) != 0) {
156 sm->identity, sm->identity_len);
169 if (sm->user == NULL || sm->user->password == NULL ||
170 sm->user->password_hash) {
177 if (rlen != sm->user->password_len ||
178 os_memcmp(pos, sm->user->password, rlen) != 0) {
188 static Boolean eap_gtc_isDone(struct eap_sm *sm, void *priv)
195 static Boolean eap_gtc_isSuccess(struct eap_sm *sm, void *priv)