aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-12-01 23:16:17 (GMT)
committerJouni Malinen <j@w1.fi>2017-12-02 10:00:44 (GMT)
commit163fc3d562313ac6a349eae67f86fd30c10a4b9a (patch)
tree3ce3b995d31e1fa3ab90cd323767679e338266c4
parentc30517c6f76d693ccb0207c16a051473f65b4eee (diff)
downloadhostap-163fc3d562313ac6a349eae67f86fd30c10a4b9a.zip
hostap-163fc3d562313ac6a349eae67f86fd30c10a4b9a.tar.gz
hostap-163fc3d562313ac6a349eae67f86fd30c10a4b9a.tar.bz2
DPP: Indicate to upper layers whether mutual authentication was used
DPP Responder selects whether mutual authentication is used. This commit adds information about that selection to upper layers (ctrl_iface event DPP-AUTH-DIRECTION mutual=<0/1>) on the Initiator side. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--src/common/dpp.c3
-rw-r--r--src/common/wpa_ctrl.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/common/dpp.c b/src/common/dpp.c
index b056ed0..09400a0 100644
--- a/src/common/dpp.c
+++ b/src/common/dpp.c
@@ -3481,6 +3481,9 @@ dpp_auth_resp_rx(struct dpp_authentication *auth, const u8 *hdr,
auth->own_bi = NULL;
}
+ wpa_msg(auth->msg_ctx, MSG_INFO, DPP_EVENT_AUTH_DIRECTION "mutual=%d",
+ auth->own_bi != NULL);
+
r_proto = dpp_get_attr(attr_start, attr_len, DPP_ATTR_R_PROTOCOL_KEY,
&r_proto_len);
if (!r_proto) {
diff --git a/src/common/wpa_ctrl.h b/src/common/wpa_ctrl.h
index 75f155e..c520988 100644
--- a/src/common/wpa_ctrl.h
+++ b/src/common/wpa_ctrl.h
@@ -157,6 +157,7 @@ extern "C" {
#define DPP_EVENT_NOT_COMPATIBLE "DPP-NOT-COMPATIBLE "
#define DPP_EVENT_RESPONSE_PENDING "DPP-RESPONSE-PENDING "
#define DPP_EVENT_SCAN_PEER_QR_CODE "DPP-SCAN-PEER-QR-CODE "
+#define DPP_EVENT_AUTH_DIRECTION "DPP-AUTH-DIRECTION "
#define DPP_EVENT_CONF_RECEIVED "DPP-CONF-RECEIVED "
#define DPP_EVENT_CONF_SENT "DPP-CONF-SENT "
#define DPP_EVENT_CONF_FAILED "DPP-CONF-FAILED "