Lines Matching defs:auth

29 	struct dpp_authentication *auth;
32 int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth);
34 bool (*tcp_msg_sent)(void *ctx, struct dpp_authentication *auth);
86 int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth);
87 bool (*tcp_msg_sent)(void *ctx, struct dpp_authentication *auth);
121 dpp_auth_deinit(conn->auth);
228 struct dpp_authentication *auth = conn->auth;
230 if (auth->waiting_csr) {
237 if (auth->waiting_new_key) {
244 if (auth->peer_version >= 2 &&
245 auth->conf_resp_status == DPP_STATUS_OK) {
247 auth->waiting_conf_result = 1;
252 auth->conf_resp_status);
300 if (conn->auth && conn->auth->connect_on_tx_status &&
302 conn->tcp_msg_sent(conn->cb_ctx, conn->auth))
305 } else if (conn->auth && (conn->ctrl || conn->auth->configurator) &&
345 struct dpp_authentication *auth = conn->auth;
350 buf = dpp_build_conf_req_helper(auth, dpp_name, conn->netrole,
368 struct dpp_authentication *auth = conn->auth;
370 if (!auth)
374 dpp_notify_auth_success(auth, initiator);
379 if (auth->configurator) {
381 auth->auth_success = 0;
387 if (!auth->configurator)
634 (!conn->auth || conn->auth->waiting_auth_resp)) {
781 if (conn->auth) {
787 conn->auth = dpp_auth_req_rx(conn->ctrl->global, conn->msg_ctx,
791 if (!conn->auth) {
796 if (dpp_set_configurator(conn->auth,
800 return dpp_tcp_send_msg(conn, conn->auth->resp_msg);
807 struct dpp_authentication *auth = conn->auth;
811 if (!auth)
816 msg = dpp_auth_resp_rx(auth, hdr, buf, len);
818 if (auth->auth_resp_status == DPP_STATUS_RESPONSE_PENDING) {
837 struct dpp_authentication *auth = conn->auth;
841 if (!auth) {
847 if (dpp_auth_conf_rx(auth, hdr, buf, len) < 0) {
862 if (!conn->auth->waiting_conf_result)
877 struct dpp_authentication *auth = conn->auth;
881 if (!conn->ctrl && (!auth || !auth->configurator))
886 if (!auth || !auth->waiting_conf_result) {
892 status = dpp_conf_result_rx(auth, hdr, buf, len);
893 if (status == DPP_STATUS_OK && auth->send_conn_status) {
896 auth->conf_resp_status);
898 auth->waiting_conn_status_result = 1;
909 "conf_resp_status=%d", auth->conf_resp_status);
920 struct dpp_authentication *auth = conn->auth;
931 if (!auth || !auth->waiting_conn_status_result) {
937 status = dpp_conn_status_result_rx(auth, hdr, buf, len,
955 struct dpp_authentication *auth;
976 if (conn->auth) {
982 auth = dpp_auth_init(dpp, conn->msg_ctx, peer_bi, NULL,
984 if (!auth)
986 if (dpp_set_configurator(auth, conn->ctrl->configurator_params) < 0) {
987 dpp_auth_deinit(auth);
991 conn->auth = auth;
992 return dpp_tcp_send_msg(conn, conn->auth->req_msg);
1004 struct dpp_authentication *auth;
1007 if (conn->auth) {
1044 auth = dpp_reconfig_init(dpp, conn->msg_ctx, conf, 0, group,
1046 if (!auth)
1048 if (dpp_set_configurator(auth, conn->ctrl->configurator_params) < 0) {
1049 dpp_auth_deinit(auth);
1053 conn->auth = auth;
1054 return dpp_tcp_send_msg(conn, auth->reconfig_req_msg);
1062 struct dpp_authentication *auth = conn->auth;
1068 if (!auth || !auth->reconfig || !auth->configurator) {
1074 conf = dpp_reconfig_auth_resp_rx(auth, hdr, buf, len);
1104 if (conn->pkex || conn->auth) {
1391 struct dpp_authentication *auth = conn->auth;
1399 if (!auth || (!conn->ctrl && !auth->configurator) ||
1400 (!auth->auth_success && !auth->reconfig_success)) {
1434 resp = dpp_conf_req_rx(auth, pos, slen);
1435 if (!resp && auth->waiting_cert) {
1442 if (!resp && auth->waiting_config && auth->peer_bi) {
1445 int i, res, *opclass = auth->e_band_support;
1449 if (auth->e_name) {
1450 size_t e_len = os_strlen(auth->e_name);
1455 (const u8 *) auth->e_name, e_len);
1471 if (auth->e_mud_url) {
1472 size_t e_len = os_strlen(auth->e_mud_url);
1474 if (!has_ctrl_char((const u8 *) auth->e_mud_url, e_len))
1475 mud_url = auth->e_mud_url;
1479 auth->peer_bi->id, dpp_netrole_str(auth->e_netrole),
1496 struct dpp_authentication *auth = conn->auth;
1505 if (!auth || (!conn->ctrl && !auth->configurator) ||
1506 (!auth->auth_success && !auth->reconfig_success) ||
1519 if (!auth->conf_resp_tcp) {
1527 resp = auth->conf_resp_tcp;
1528 auth->conf_resp_tcp = NULL;
1536 struct dpp_authentication *auth = conn->auth;
1538 if (!auth || !auth->csrattrs)
1542 wpabuf_free(auth->csr);
1544 auth->csr = dpp_build_csr(auth, conn->name ? conn->name : "Test");
1545 if (!auth->csr) {
1558 struct dpp_authentication *auth = conn->auth;
1560 if (!auth || !auth->waiting_new_key)
1571 struct dpp_authentication *auth = conn->auth;
1579 if (auth)
1580 res = dpp_conf_resp_rx(auth, resp);
1603 res = conn->process_conf_obj(conn->cb_ctx, auth);
1607 if (auth->peer_version < 2 || auth->conf_resp_status != DPP_STATUS_OK)
1612 msg = dpp_build_conf_result(auth, status);
1629 struct dpp_authentication *auth = conn->auth;
1632 if (!auth)
1993 struct dpp_authentication *auth)
1997 hdr = wpabuf_head(auth->req_msg);
1998 end = hdr + wpabuf_len(auth->req_msg);
2009 int dpp_tcp_init(struct dpp_global *dpp, struct dpp_authentication *auth,
2016 struct dpp_authentication *auth),
2018 struct dpp_authentication *auth))
2029 dpp_auth_deinit(auth);
2035 dpp_auth_deinit(auth);
2052 conn->auth = auth;
2081 if (dpp_tcp_auth_start(conn, auth) < 0)
2095 struct dpp_authentication *auth, const char *name,
2100 struct dpp_authentication *auth),
2102 struct dpp_authentication *auth))
2120 conn->auth = auth;
2122 if (dpp_tcp_auth_start(conn, auth) < 0)
2241 static bool dpp_tcp_peer_id_match(struct dpp_authentication *auth,
2244 return auth &&
2245 ((auth->peer_bi && auth->peer_bi->id == id) ||
2246 (auth->tmp_peer_bi && auth->tmp_peer_bi->id == id));
2256 if (dpp_tcp_peer_id_match(conn->auth, id))
2257 return conn->auth;
2274 if (dpp_tcp_peer_id_match(conn->auth, id))
2275 return conn->auth;
2292 struct dpp_authentication *auth = conn->auth;
2294 if (!auth->response_pending ||
2295 dpp_notify_new_qr_code(auth, bi) != 1)
2299 dpp_tcp_send_msg(conn, conn->auth->resp_msg);
2596 if (conn->auth && conn->auth->conn_status_requested)
2610 struct dpp_authentication *auth = conn->auth;
2615 auth->conn_status_requested = 0;
2617 msg = dpp_build_conn_status_result(auth, result, ssid, ssid_len,
2653 if (conn->auth && conn->auth->conn_status_requested) {