Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1930107lqg; Mon, 4 Mar 2024 07:58:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWr2+b5UFu/CgrD4nl1dhRYS71WfU/v2UwQbH7QgUQKA2a45Fx2Ll4QyQAwaoJ6QScz+oSxhKSXZOL+Y24xIdSDxc5OW31E8EEGs1y/FQ== X-Google-Smtp-Source: AGHT+IGm5AK8LymHECG22AECMQb5CXkNEuXO85pMAIcvPsmGHRhz9UP1Y6U0gEZw+yJluET98QKb X-Received: by 2002:a05:6512:7c:b0:512:f31c:f0c0 with SMTP id i28-20020a056512007c00b00512f31cf0c0mr6323808lfo.37.1709567935057; Mon, 04 Mar 2024 07:58:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709567935; cv=pass; d=google.com; s=arc-20160816; b=sZcyTzpMo1o1k+pDJZLFuz9TxFn/LYJH4m/GwQG7yIDc/26PtbpGuDxcg0uYx2K+4g qAAiu9cHXy+Un1kzPPXbd4PeqT02KJUhm4T6T1AtBgCLnXFwcuM7fcwdPcGAQqc3OSlI i3F0n+c3k922SQOu3X5vwsEuH5bG9LN4+1hU9shgW2CLUaB3uaDAnqAeICxBTxl6T8Wb DT4/rG+wo/eX3l4OxEtmjGaSY8muH8SvOICG7VLtRHm5xY3TESpuL2+SDwnKbCGQrb0c AsUtjWONVL+JmoEPsUpz9MKsafYl7T1/pEf2BPfjXl5whw2f/zS+Fxd1JLdsaraJKPK/ mHrg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:to:from :dkim-signature; bh=xQOWIPJdOS8y8dmrjiiZmVWehjyHIRLtmsMFGoR7dWQ=; fh=4lGQI6056MBa4/oovMyIYaKLn+Wz/24RGvUivMmQP8E=; b=B1GDxvcOLOWq6O/4uFfxD03ekSk5aqtunp1wKNRHSc/63+Gw5XK6MuUa/YWYUThcL9 V2Q94cw1VRt7//Z3Yo8iHrLcmH3b1l0sUfxI1dTy7i46s9xjKjodaQzgGmh8OJPORfEN W8+j/KMDQUPtt2WYRyA1Bmh0QQU02/sARFaSjlc2t6+HuCRogOZf1fVUx6nJfxAPhObd 5QpQGS8Oscmr1VNTJ82M5f+lOLTZ/WBbWFcEucd8WsTayaLGnGzu5DfQxjDdX+d7Pgd8 IzCePqa+dmzk3jgtspGofReHwuYDuet1L3WXrL9pRER14QpnzNfJa+g4fDqkj9fl0XIY pUuw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Fu2EttXe; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2273-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2273-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v20-20020a056402349400b00566c23aca61si3415758edc.331.2024.03.04.07.58.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 07:58:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2273-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Fu2EttXe; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2273-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2273-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C179D1F22C2D for ; Mon, 4 Mar 2024 15:58:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 797C6481C2; Mon, 4 Mar 2024 15:58:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Fu2EttXe" X-Original-To: linux-bluetooth@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 53E563FB02 for ; Mon, 4 Mar 2024 15:58:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709567928; cv=none; b=bxZv5EFcEB7Bt6zA7marbyYpgg7DOLF94mT7DQ9QUGEHRJEDwQy68F8yDrp7sscAGpOIKBNHe+xNmjDWbITEP8EGa1DqKU/nlwBeFgkDit80yAK992RkTK0Dq3H8jRyHI1DG2/K4KErQLQi6JyBguTXDqJ6L3H95dcbLutx8obk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709567928; c=relaxed/simple; bh=vmnFinifS68K0q1xbtucvwslmqYerFjzg8LaboEGsqQ=; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type: Content-Type; b=CcyF+H/5+JwCcKKa8m+2w4BQnPOTdHGTM0Fo3NAtZ819ZhcgewLnBqfr+mJcREyMZLaLnBADPgXK/e3wchO521XZeiqDhdeOGiVSrQtiwgwW+ITWB2phHxPVouKh8VBgmhFzhmp392fypbyLhch0pfS65BQwpdl1aBX/zkr2oOQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=Fu2EttXe; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1709567925; bh=vmnFinifS68K0q1xbtucvwslmqYerFjzg8LaboEGsqQ=; h=From:To:Subject:Date:From; b=Fu2EttXe4Klwsfk/h61D0WSZmUT9VSbA+V/FZBnWYcWIn09MlFrniX2moohFF54ME wtsdYv05zgR32onwvSL3/uu0ttFqDAHneKuEjPCrh1WqApnil3r2rmyilxyUsREcJG UorSESX+/X62Rs/PoGOgrBq7tHdnk9/0Pd5RdCCNlyVq2OgozGW1DpvxLj9fdDT5Y3 E7fpY0RUgA7RRdwg4RFzGPuiNC/md6T5SQ1uC94V5tk2a8onbU5xhplakIBivt2dDj nTB46uYYidYywRklUW+4IBNnCW1Rax9MnX1ieJ4DFOucru5fYK1clOSk9TFvyszFTR LCfiIQ24Xxb8g== Received: from fdanis-XPS-13-9370.. (cola.collaboradmins.com [195.201.22.229]) (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) (Authenticated sender: fdanis) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 5ACC537820C6 for ; Mon, 4 Mar 2024 15:58:45 +0000 (UTC) From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= To: linux-bluetooth@vger.kernel.org Subject: [RESEND PATCH BlueZ v2 0/2] Add support for signed write command Date: Mon, 4 Mar 2024 16:58:37 +0100 Message-Id: <20240304155839.48888-1-frederic.danis@collabora.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit GAP/SEC/CSIGN/BV-02-C request the ability to check that signed write has been performed successfully. Move the storage of local and remote CSRK keys to the device object. This allow to pass GAP/SEC/CSIGN/BV-01-C and GAP/SEC/CSIGN/BV-02-C tests. v1 -> v2: Move CSRK keys storage to device object only Frédéric Danis (2): gatt-server: Add support for signed write command device: Update local and remote CSRK on management event src/adapter.c | 77 +--------------------------------------- src/device.c | 48 +++++++++++++++++++++++++ src/device.h | 3 ++ src/shared/gatt-server.c | 13 ++++++- 4 files changed, 64 insertions(+), 77 deletions(-) -- 2.34.1