]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Indicate to upper layers whether mutual authentication was used
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 1 Dec 2017 23:16:17 +0000 (01:16 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 2 Dec 2017 10:00:44 +0000 (12:00 +0200)
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>
src/common/dpp.c
src/common/wpa_ctrl.h

index b056ed0434b6a50a9fa82dbb246d3918cdd28705..09400a0d97b93735212274764583fd550aae84f6 100644 (file)
@@ -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) {
index 75f155e1390505865ed41297876a887154f03212..c5209883dd0578bf97ee2bf63b6a6f9234844bf0 100644 (file)
@@ -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 "