Message ID | 20210511105618.72497-3-kazikcz@gmail.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=Th/Bug6j; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=H/pokde9; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=uTI6rp95; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FfdLQ2mw9z9sWT for <incoming@patchwork.ozlabs.org>; Tue, 11 May 2021 22:59:58 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+eFIfiJLw5bcN+tzjg2mxkktJh4jzN8zaKDafHq9fVU=; b=Th/Bug6jJDbBs0iH4AQW9Uuxe RtdO+xWQmED86FiiDGe9vlLUM8khvAn/vtOSMZ8KqIPYqN45MHpBvdIlyMhGTr+anRJzDJyzwjxQn nt/AgNP183sbj3xMFenSzXYUW/YKnk6sbExDxfOH1Kp0cqwA/HFUcq/J8OTGPMoApJ072jIgS4eis OrssoovM8w7ZSApHOhq8dP8hg/2/GZHL7/pOI8X+ukAcwfG0ilR/SNVqaEQsSe8kAjSjuve/rjqU1 I7C5QpvfuuCaYNrhaDmRwC9FewbSIKQRQqKnSGw8HkHqM3XJ3QDvSswEacUAg/1d0tn9733pILeqI cNhckGYCQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgRyi-00HXGH-JX; Tue, 11 May 2021 12:59:12 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgQ3y-00H2V5-CV for hostap@desiato.infradead.org; Tue, 11 May 2021 10:56:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=SESSTbTWzCAuhCd2tes+FXk0oRYpRcpbLavwGGPS250=; b=H/pokde9B6Df/CJSE4yRKnv/vv WaelVsN+osw/vGwIKrOq6Hl/+xkTHtpiQCLBIsqSSjxIJQPKpxxGNAK0izDsWhxZlRZZNaLM+VnJl y10H5OiDTAr4vAKAnA2tKP0wiOViOga6SDX5e+M2+sOaDfX2V8qROmMCfTQG22Enl1xectKK6gJac Hycl+IRFMQBa/uB5iXzdmbI9xyXi3VB81nR8n+gtg/P9sfqtDKqYruDv0XeBp+96BEvOCnzl+g0MA cdqrGHJ7FuE9+xnOhwG6RrQcvymgrZKTNsz0VyIqFdfsbZKd1d2L/TBYCvdR6qZU+R0X+W+8Ydh/e HHtqKz8g==; Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgQ3v-009UuC-CH for hostap@lists.infradead.org; Tue, 11 May 2021 10:56:29 +0000 Received: by mail-lj1-x22a.google.com with SMTP id v5so24537775ljg.12 for <hostap@lists.infradead.org>; Tue, 11 May 2021 03:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SESSTbTWzCAuhCd2tes+FXk0oRYpRcpbLavwGGPS250=; b=uTI6rp95GfIddl7bK7g3A5JzXC/HjAAkbkmj9HloeBt72gCMXubmk0aOyzGlo2Wibg XrWWbTQXwTUSorJnP+pIfYUufrYtlFfPFVbMNC7pIxPbhrzM1qsfe6tLS2TvXePeOaQC /v2DVGjATVIEbdfsbhjWp3KHJ+nuC8yFyxyEmy2L2uzkKklu//fZ8136Olk8kaI1TYBI /fSBF7imGLu/zm8GTrzfno2vn/KYKciEcmaDHnGHWDjARXP6zZni0QCmb3FfxLrUtQAU qoYH3lwGOhlkE/Mb+lK9u88xFnXg/tbVAZwFDv3U4AagubazfBLbOcME40qC9NprWURr +RGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SESSTbTWzCAuhCd2tes+FXk0oRYpRcpbLavwGGPS250=; b=JFEEzjz2xuvpBy29Fez0c8+jZQqkFIwpAMzipVx8eU/tcSwq8zX3jXV4MHmYowpi6h ral2bIcngGywQVMmG364frztVgSeK0OuGafMBOhhzyab5ok7QsOyFt6q83stKjfm8/bv VdmMYOAo8JzdDXx9hfbHNvM9QIO5yND5vgCwwQG6bEuGRUmCAA1vyZONgJNb91xFpIBw c3eKpcvEO72ELOWp7+qi7QYxXJQuw4ac6WETaHRTXw34MFRBG6qmSDkuKiRyCur/JrGL Iu/gQGmbMA20CdPS9/N0SPZ+oJ7tjCZRYVbWWmSq00kR1sA7xS5l5X4sCHNiFfACphWw 7GfQ== X-Gm-Message-State: AOAM533KgSNb5FHO4Ku1vFO9Rw77xhotrQdyf54JLg5e1uJ8CFKJetGE G8Sudk6wOvY6qzs5uzhYRMOENnNv+sM= X-Google-Smtp-Source: ABdhPJxaqARH4eJCArJUU2yHLGpBInlMziB7AtsOc+gm/u0I8iZWF6urF7h7m1ZxPCi6SrYZKo4mUw== X-Received: by 2002:a2e:9116:: with SMTP id m22mr23430432ljg.176.1620730585515; Tue, 11 May 2021 03:56:25 -0700 (PDT) Received: from drun:home-michalkazior-docker-linux-alpine.pl.plumewifi.com ([2a03:4b00:0:4:692:26ff:fed9:4198]) by smtp.gmail.com with ESMTPSA id 8sm1393303ljj.138.2021.05.11.03.56.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 03:56:25 -0700 (PDT) From: Michal Kazior <kazikcz@gmail.com> To: hostap@lists.infradead.org Cc: Michal Kazior <michal@plume.com> Subject: [PATCHv3 3/3] DPP: expose own and peer bootstrap info ids on dpp auth Date: Tue, 11 May 2021 10:56:18 +0000 Message-Id: <20210511105618.72497-3-kazikcz@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210511105618.72497-1-kazikcz@gmail.com> References: <20210430132032.5965-1-kazikcz@gmail.com> <20210511105618.72497-1-kazikcz@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210511_035627_436775_25F98F24 X-CRM114-Status: GOOD ( 10.66 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Michal Kazior The system may be interested in knowing which bootstrap information entries are being exercised. This could be used for statistics or completion signaling to upper application layer outside of hostapd, along with the public key hash. Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:22a listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [kazikcz[at]gmail.com] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <mailto:hostap-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/hostap/> List-Post: <mailto:hostap@lists.infradead.org> List-Help: <mailto:hostap-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
[PATCHv2,1/3] DPP: move DPP_EVENT_AUTH_SUCCESS to a helper
|
expand
|
diff --git a/src/common/dpp.c b/src/common/dpp.c index 56c442d6d..1e5acb6b5 100644 --- a/src/common/dpp.c +++ b/src/common/dpp.c @@ -4402,8 +4402,11 @@ void dpp_notify_auth_success(struct dpp_authentication *auth, int initiator) os_memset(hex, 0, sizeof(hex)); dpp_get_pubkey_hash(auth->peer_protocol_key, hex, sizeof(hex)); - wpa_msg(auth->msg_ctx, MSG_INFO, DPP_EVENT_AUTH_SUCCESS "init=%d pkhash=%s", - initiator, hex); + wpa_msg(auth->msg_ctx, MSG_INFO, DPP_EVENT_AUTH_SUCCESS + "init=%d pkhash=%s own=%d peer=%d", + initiator, hex, + auth->own_bi ? auth->own_bi->id : -1, + auth->peer_bi ? auth->peer_bi->id : -1); }