Home | History | Annotate | Download | only in eap_server

Lines Matching refs:sm

27 static void * eap_gtc_init(struct eap_sm *sm)
37 if (sm->m && sm->m->vendor == EAP_VENDOR_IETF &&
38 sm->m->method == EAP_TYPE_FAST) {
49 static void eap_gtc_reset(struct eap_sm *sm, void *priv)
56 static struct wpabuf * eap_gtc_buildReq(struct eap_sm *sm, void *priv, u8 id)
83 static Boolean eap_gtc_check(struct eap_sm *sm, void *priv,
99 static void eap_gtc_process(struct eap_sm *sm, void *priv,
137 if (sm->identity && sm->require_identity_match &&
138 (pos2 - pos != (int) sm->identity_len ||
139 os_memcmp(pos, sm->identity, sm->identity_len))) {
144 sm->identity, sm->identity_len);
148 os_free(sm->identity);
149 sm->identity_len = pos2 - pos;
150 sm->identity = os_malloc(sm->identity_len);
151 if (sm->identity == NULL) {
155 os_memcpy(sm->identity, pos, sm->identity_len);
158 if (eap_user_get(sm, sm->identity, sm->identity_len, 1) != 0) {
162 sm->identity, sm->identity_len);
175 if (sm->user == NULL || sm->user->password == NULL ||
176 sm->user->password_hash) {
183 if (rlen != sm->user->password_len ||
184 os_memcmp(pos, sm->user->password, rlen) != 0) {
194 static Boolean eap_gtc_isDone(struct eap_sm *sm, void *priv)
201 static Boolean eap_gtc_isSuccess(struct eap_sm *sm, void *priv)