Message ID | 20210430132032.5965-3-kazikcz@gmail.com |
---|---|
State | Superseded |
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=ac5QHEF0; 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=T9BKrZTP; 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=VZzK48KX; 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 4FWtLj01PCz9sCD for <incoming@patchwork.ozlabs.org>; Fri, 30 Apr 2021 23:21:46 +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=GLEfhi+331EEHO440NZIJbGNpAfupjCsx6VeJc1MiVA=; b=ac5QHEF0LAAssdzjv1eYdQubT /HvKI6mVUBmwTBpVm/dDYlI5WJyuHJoLRAwkbwNTi0PorLl7DfHn1bTxLqQXtbNA3pcQnteqWVV91 eYFWPMGvz2RzbG3oIECaTk2zXvbCG5QDyUIINSS4ePon8TMK+7pqODh+PKMY0xRHBp8FZdcm72pHf xEEgAyKSIMsU3Cl2GcL/xVw+yn/f8NEyNe1T1gKosqT2JD8/RFNFG4vtONBHiL8E0I5YOJKZZQtfv 3zV1C+ulkD6rc/zQ0tU7lPyHA1YgJvD3ep8DfphT380sEOIYmhZuR7Q+/zcLCb+Nqb7iamXLYnjTM Dq9oKZgAA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lcT4b-007u0h-AB; Fri, 30 Apr 2021 13:20:49 +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 1lcT4Z-007u0W-EY for hostap@desiato.infradead.org; Fri, 30 Apr 2021 13:20:47 +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=JNnE/xvTGboPOROcCJgqn+rRVVURsVlgrzuB3Bkjbnk=; b=T9BKrZTPb+8yx/ds7cNbkCr4AS jYYJ6ICkMXWANPzjKTCFrgrxrA2xo5wSQsZe2iptcGPx52EKSaf6sfIcSysG9ahVP1719iOovm7a8 gTGPBTiGUfER26tVuK+Fcj7d3dVNSimISKTfrJFISZkeVvWAyQzo2hapwaOeAbTDaPe38guwMOqtM b+N5yYg/yewT+AD1xTtcZbv01IIw7zcQIAqHj4lEoeUDOU3ZDAGTzonidEQdaMhPy8Pgz29gw7U/g zz9WuuoNDo5bpr514HuS8JSJnTFQfmE95d84nNuv/0H2Gw0WfYh/sXcKvHoEHVUhYxDRJCFBXBPKE 2ogZvW1A==; Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lcT4W-001OyS-P2 for hostap@lists.infradead.org; Fri, 30 Apr 2021 13:20:46 +0000 Received: by mail-lj1-x22e.google.com with SMTP id a13so26922830ljp.2 for <hostap@lists.infradead.org>; Fri, 30 Apr 2021 06:20:44 -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=JNnE/xvTGboPOROcCJgqn+rRVVURsVlgrzuB3Bkjbnk=; b=VZzK48KX0qrzDDHDcEJe/9znrDZKndwbcg6dyV3G/oWOAvYUITz8mxUIjlIAbsD2/N ZA8iQTWh3dp3JXBqvWxuSW+endGDVJKOcdTN/HWRIIC6SCCeUtVNo0N/huhNzafdO/Zp 3PjyzG1I3SrWZauU32Q8g1Vz/BB8B26m06Vy4/+NMNGJkRAeWYymK8cIrVxg18wbEw5J RjbmEEIy8F28TuBIEXeStuV/M+dlBUJGw8EwfHtJ/4padK903APS0KOahumB26TFAff4 Ne8Rm9QoDpaw2im1N/yw9Y45AbpVIulQwHjAd1Z4Hfp5t2b/1O3AAcYXoWqpHlOPJFxM jmLg== 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=JNnE/xvTGboPOROcCJgqn+rRVVURsVlgrzuB3Bkjbnk=; b=RjGr/qwqvNxjTipLvxOCmuBfnLoP1SPO0o/wW6bs2L9aGXaQADIpHNBXe5g4dGfEY/ 5427zTZFxXQGm91PYk5Ots2xiojq8sunkOKod06IHNYdCCkLw3FAwLdmi/wcpkcn8cRm cFUgmB+aVl+VF1xcOBjRKYS0ygs8LVUsxvjeoZ7/+M+9WcUCHj3FAUyzCK1wH5pZhPOJ QJXIV4P9hUXHmln7o6VLWzy6yfclLAdUUq2FgUgaqPVE2xYvuWLpm5WvSaEFLp9iTb+I TTXRtDxTwpgcJe+f1peBpHW2LTJHCask8D9hUlQ+43jpjh5UbsGmV2TGavRZP0vR9E76 a/XQ== X-Gm-Message-State: AOAM530+nGPcvgIiiP7G7uixpNNYj1B4Ny7jxrcf5n/HnMnrN7g6/H9g p0qDSDCeZctmSl5W5RltWEOXdCinMtA= X-Google-Smtp-Source: ABdhPJzYb31xUwtY35l+I9S5eWs5nmMq1JFdC/WUHjV7UVhlbNDN/kMiQKBvOKkAVrZ2pKQMyU1aQg== X-Received: by 2002:a2e:a795:: with SMTP id c21mr3867066ljf.353.1619788842768; Fri, 30 Apr 2021 06:20:42 -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 q3sm287452lfu.103.2021.04.30.06.20.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Apr 2021 06:20:42 -0700 (PDT) From: Michal Kazior <kazikcz@gmail.com> To: hostap@lists.infradead.org Cc: Michal Kazior <michal@plume.com> Subject: [PATCHv2 3/3] DPP: expose own and peer bootstrap info ids on dpp auth Date: Fri, 30 Apr 2021 13:20:32 +0000 Message-Id: <20210430132032.5965-3-kazikcz@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210430132032.5965-1-kazikcz@gmail.com> References: <20210329140311.897-1-kazikcz@gmail.com> <20210430132032.5965-1-kazikcz@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210430_062044_831669_6493595B X-CRM114-Status: GOOD ( 11.40 ) 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:22e 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 |
DPP: expose enrollee pubkey hash for identification
|
expand
|
diff --git a/src/common/dpp.c b/src/common/dpp.c index e1edde449..2b6844e52 100644 --- a/src/common/dpp.c +++ b/src/common/dpp.c @@ -4433,8 +4433,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); } #endif /* CONFIG_DPP2 */