Lines Matching refs:resp

155 	struct wpabuf *resp;  in eap_mschapv2_challenge_reply()  local
172 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_MSCHAPV2, ms_len, in eap_mschapv2_challenge_reply()
174 if (resp == NULL) in eap_mschapv2_challenge_reply()
177 ms = wpabuf_put(resp, sizeof(*ms)); in eap_mschapv2_challenge_reply()
191 wpabuf_put_u8(resp, sizeof(*r)); /* Value-Size */ in eap_mschapv2_challenge_reply()
194 r = wpabuf_put(resp, sizeof(*r)); in eap_mschapv2_challenge_reply()
202 wpabuf_free(resp); in eap_mschapv2_challenge_reply()
217 wpabuf_free(resp); in eap_mschapv2_challenge_reply()
225 wpabuf_put_data(resp, identity, identity_len); in eap_mschapv2_challenge_reply()
228 return resp; in eap_mschapv2_challenge_reply()
354 struct wpabuf *resp; in eap_mschapv2_success() local
381 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_MSCHAPV2, 1, in eap_mschapv2_success()
383 if (resp == NULL) { in eap_mschapv2_success()
390 wpabuf_put_u8(resp, MSCHAPV2_OP_SUCCESS); /* op_code */ in eap_mschapv2_success()
400 return resp; in eap_mschapv2_success()
523 struct wpabuf *resp; in eap_mschapv2_change_password()
546 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_MSCHAPV2, ms_len, in eap_mschapv2_change_password()
548 if (resp == NULL) in eap_mschapv2_change_password()
551 ms = wpabuf_put(resp, sizeof(*ms)); in eap_mschapv2_change_password()
555 cp = wpabuf_put(resp, sizeof(*cp)); in eap_mschapv2_change_password()
635 return resp; in eap_mschapv2_change_password()
638 wpabuf_free(resp); in eap_mschapv2_change_password()
661 struct wpabuf *resp; in eap_mschapv2_failure() local
703 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_MSCHAPV2, 1, in eap_mschapv2_failure()
705 if (resp == NULL) in eap_mschapv2_failure()
708 wpabuf_put_u8(resp, MSCHAPV2_OP_FAILURE); /* op_code */ in eap_mschapv2_failure()
710 return resp; in eap_mschapv2_failure()