• Home
  • Raw
  • Download

Lines Matching refs:auth

27 	struct dpp_authentication *auth;  member
86 dpp_auth_deinit(conn->auth); in dpp_connection_free()
141 struct dpp_authentication *auth = conn->auth; in dpp_controller_gas_done() local
144 if (auth->peer_version >= 2 && in dpp_controller_gas_done()
145 auth->conf_resp_status == DPP_STATUS_OK) { in dpp_controller_gas_done()
147 auth->waiting_conf_result = 1; in dpp_controller_gas_done()
154 msg_ctx = auth->msg_ctx; in dpp_controller_gas_done()
204 } else if (conn->auth && (conn->ctrl || conn->auth->configurator) && in dpp_tcp_send()
244 struct dpp_authentication *auth = conn->auth; in dpp_controller_start_gas_client() local
248 buf = dpp_build_conf_req_helper(auth, "Test", netrole_ap, NULL, NULL); in dpp_controller_start_gas_client()
263 struct dpp_authentication *auth = conn->auth; in dpp_controller_auth_success() local
265 if (!auth) in dpp_controller_auth_success()
275 if (auth->configurator) { in dpp_controller_auth_success()
277 auth->auth_success = 0; in dpp_controller_auth_success()
283 if (!auth->configurator) in dpp_controller_auth_success()
605 if (conn->auth) { in dpp_controller_rx_auth_req()
611 conn->auth = dpp_auth_req_rx(conn->ctrl->global, in dpp_controller_rx_auth_req()
616 if (!conn->auth) { in dpp_controller_rx_auth_req()
621 if (dpp_set_configurator(conn->auth, in dpp_controller_rx_auth_req()
627 return dpp_tcp_send_msg(conn, conn->auth->resp_msg); in dpp_controller_rx_auth_req()
634 struct dpp_authentication *auth = conn->auth; in dpp_controller_rx_auth_resp() local
638 if (!auth) in dpp_controller_rx_auth_resp()
643 msg = dpp_auth_resp_rx(auth, hdr, buf, len); in dpp_controller_rx_auth_resp()
645 if (auth->auth_resp_status == DPP_STATUS_RESPONSE_PENDING) { in dpp_controller_rx_auth_resp()
665 struct dpp_authentication *auth = conn->auth; in dpp_controller_rx_auth_conf() local
669 if (!auth) { in dpp_controller_rx_auth_conf()
675 if (dpp_auth_conf_rx(auth, hdr, buf, len) < 0) { in dpp_controller_rx_auth_conf()
690 if (!conn->auth->waiting_conf_result) in dpp_controller_conn_status_result_wait_timeout()
705 struct dpp_authentication *auth = conn->auth; in dpp_controller_rx_conf_result() local
709 if (!conn->ctrl && (!auth || !auth->configurator)) in dpp_controller_rx_conf_result()
714 if (!auth || !auth->waiting_conf_result) { in dpp_controller_rx_conf_result()
722 msg_ctx = auth->msg_ctx; in dpp_controller_rx_conf_result()
724 status = dpp_conf_result_rx(auth, hdr, buf, len); in dpp_controller_rx_conf_result()
725 if (status == DPP_STATUS_OK && auth->send_conn_status) { in dpp_controller_rx_conf_result()
749 struct dpp_authentication *auth = conn->auth; in dpp_controller_rx_conn_status_result() local
760 if (!auth || !auth->waiting_conn_status_result) { in dpp_controller_rx_conn_status_result()
766 status = dpp_conn_status_result_rx(auth, hdr, buf, len, in dpp_controller_rx_conn_status_result()
785 struct dpp_authentication *auth; in dpp_controller_rx_presence_announcement() local
788 if (conn->auth) { in dpp_controller_rx_presence_announcement()
812 auth = dpp_auth_init(dpp, dpp->msg_ctx, peer_bi, NULL, in dpp_controller_rx_presence_announcement()
814 if (!auth) in dpp_controller_rx_presence_announcement()
816 if (dpp_set_configurator(auth, conn->ctrl->configurator_params) < 0) { in dpp_controller_rx_presence_announcement()
817 dpp_auth_deinit(auth); in dpp_controller_rx_presence_announcement()
822 conn->auth = auth; in dpp_controller_rx_presence_announcement()
823 return dpp_tcp_send_msg(conn, conn->auth->req_msg); in dpp_controller_rx_presence_announcement()
835 struct dpp_authentication *auth; in dpp_controller_rx_reconfig_announcement() local
837 if (conn->auth) { in dpp_controller_rx_reconfig_announcement()
861 auth = dpp_reconfig_init(dpp, dpp->msg_ctx, conf, 0); in dpp_controller_rx_reconfig_announcement()
862 if (!auth) in dpp_controller_rx_reconfig_announcement()
864 if (dpp_set_configurator(auth, conn->ctrl->configurator_params) < 0) { in dpp_controller_rx_reconfig_announcement()
865 dpp_auth_deinit(auth); in dpp_controller_rx_reconfig_announcement()
869 conn->auth = auth; in dpp_controller_rx_reconfig_announcement()
870 return dpp_tcp_send_msg(conn, auth->reconfig_req_msg); in dpp_controller_rx_reconfig_announcement()
878 struct dpp_authentication *auth = conn->auth; in dpp_controller_rx_reconfig_auth_resp() local
884 if (!auth || !auth->reconfig || !auth->configurator) { in dpp_controller_rx_reconfig_auth_resp()
890 conf = dpp_reconfig_auth_resp_rx(auth, hdr, buf, len); in dpp_controller_rx_reconfig_auth_resp()
976 struct dpp_authentication *auth = conn->auth; in dpp_controller_rx_gas_req() local
984 if (!auth || (!conn->ctrl && !auth->configurator) || in dpp_controller_rx_gas_req()
985 (!auth->auth_success && !auth->reconfig_success)) { in dpp_controller_rx_gas_req()
1017 resp = dpp_conf_req_rx(auth, pos, slen); in dpp_controller_rx_gas_req()
1052 struct dpp_authentication *auth = conn->auth; in dpp_tcp_rx_gas_resp() local
1060 if (auth) in dpp_tcp_rx_gas_resp()
1061 res = dpp_conf_resp_rx(auth, resp); in dpp_tcp_rx_gas_resp()
1072 auth); in dpp_tcp_rx_gas_resp()
1076 if (auth->peer_version < 2 || auth->conf_resp_status != DPP_STATUS_OK) in dpp_tcp_rx_gas_resp()
1081 msg = dpp_build_conf_result(auth, status); in dpp_tcp_rx_gas_resp()
1329 int dpp_tcp_init(struct dpp_global *dpp, struct dpp_authentication *auth, in dpp_tcp_init() argument
1342 dpp_auth_deinit(auth); in dpp_tcp_init()
1348 dpp_auth_deinit(auth); in dpp_tcp_init()
1353 conn->auth = auth; in dpp_tcp_init()
1382 hdr = wpabuf_head(auth->req_msg); in dpp_tcp_init()
1383 end = hdr + wpabuf_len(auth->req_msg); in dpp_tcp_init()