Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp217014pxb; Thu, 2 Sep 2021 02:32:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlV0gesKWaD9N/lTG9fFobrllI5spidVBlWKbBIkZftaNDPpDJz7YsYMHzZj38u5HDhA51 X-Received: by 2002:a02:b605:: with SMTP id h5mr2011692jam.119.1630575159885; Thu, 02 Sep 2021 02:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630575159; cv=none; d=google.com; s=arc-20160816; b=CIGTaT/rWlSfir+sSk6lm0uSEHW4lR6owyAWnfWBaBP5Is1/ViUOhq2IMCdYNhmhVv 3D4HnLPTFjyo3SSHOH1gKgqiVYuwE/SWSbsymbil1HB7XHArybrRVhQBCfX2HqK+Kr3k LhJk04/1ZSJ4BgG2iH9ZQFqHiOxYUpkSIUcpwngzxFS5FjcOEhyhzMJxP4dVT3ZmV1/L gOqdlCugDRYLAqBD+8GOZW/ryKw5yOqKy6aETuWjAvbuymlbZ6yPiWIAB2MQVDQ0BWE+ ZrvYdctkpIjVKSSKB9qEurLuwSI1GNp/xTFVWfddRMZMWS2fpz4GDWFc2HoYSCuywkfT Z0Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=ZFVzAr9Od75OtQ59cqGkZCjVaIqCC5f2fdfstVN1dlg=; b=shtUooFO5BOjVylf67ViYNLxEKk93NpW9qyTp+f9ZLdp3UMS/kmSlVMdSTsTAf5uhQ sVGCuATeBV8v+HRqUqUwwExvk3fWk8QFM1D2BSm4Eef2NdaZ7iTcPk43r36NdL65zpBf owmw+OpKMQG2HZ3by7qnu2FekCL4KyeLyzeCMeQEzQRaIiwi/bhFxNotH0vJwlzrqwR0 rBctiq4B++FOWDqpnYoEL8oDpJl1S1pwoJYzeznLA6TTwpupNI8CAHYNJQkDun9R2V9H KwUvYoBwyObr+ISWGPsRGcMPuq3pY41ukGXt5NwHgo5zaarZbyUnp8EQTcN4X9MYyAtb nTZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e11si1398325ili.46.2021.09.02.02.31.58; Thu, 02 Sep 2021 02:32:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343509AbhIBJaJ convert rfc822-to-8bit (ORCPT + 99 others); Thu, 2 Sep 2021 05:30:09 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:44496 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343539AbhIBJaE (ORCPT ); Thu, 2 Sep 2021 05:30:04 -0400 Received: from smtpclient.apple (p5b3d2185.dip0.t-ipconnect.de [91.61.33.133]) by mail.holtmann.org (Postfix) with ESMTPSA id 5DF76CECDE; Thu, 2 Sep 2021 11:29:05 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: [Bluez PATCH v2 13/13] adapter: Inclusive language for storing LTK From: Marcel Holtmann In-Reply-To: <20210902120509.Bluez.v2.13.I90a92f48ae29b2a8d8b18f856ea2a43afba52299@changeid> Date: Thu, 2 Sep 2021 11:29:04 +0200 Cc: linux-bluetooth , Luiz Augusto von Dentz , CrosBT Upstreaming , Archie Pusaka Content-Transfer-Encoding: 8BIT Message-Id: <1F544696-4D64-440F-B92E-5A0E05A64EE2@holtmann.org> References: <20210902040711.665952-1-apusaka@google.com> <20210902120509.Bluez.v2.13.I90a92f48ae29b2a8d8b18f856ea2a43afba52299@changeid> To: Archie Pusaka X-Mailer: Apple Mail (2.3654.120.0.1.13) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Archie, > BT core spec 5.3 promotes the usage of inclusive languages. > This CL replaces some terms with the more appropriate counterparts, > such as "central" and "peripheral" > --- > > (no changes since v1) > > doc/settings-storage.txt | 4 ++-- > src/adapter.c | 10 +++++----- > 2 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/doc/settings-storage.txt b/doc/settings-storage.txt > index 1d96cd66d9..3c637c3521 100644 > --- a/doc/settings-storage.txt > +++ b/doc/settings-storage.txt > @@ -314,9 +314,9 @@ Long term key) related to a remote device. > Rand Integer Randomizer > > > -[SlaveLongTermKey] group contains: > +[PeripheralLongTermKey] group contains: > > - Same as the [LongTermKey] group, except for slave keys. > + Same as the [LongTermKey] group, except for peripheral keys. > > > [ConnectionParameters] group contains: > diff --git a/src/adapter.c b/src/adapter.c > index 4ad53a3a24..8528e2b6e0 100644 > --- a/src/adapter.c > +++ b/src/adapter.c > @@ -3745,7 +3745,7 @@ static struct smp_ltk_info *get_ltk(GKeyFile *key_file, const char *peer, > NULL); > ltk->ediv = g_key_file_get_integer(key_file, group, "EDiv", NULL); > > - central = g_key_file_get_boolean(key_file, group, "Master", &gerr); > + central = g_key_file_get_boolean(key_file, group, "Central", &gerr); > if (gerr) > g_error_free(gerr); > else > @@ -3777,7 +3777,7 @@ static struct smp_ltk_info *get_peripheral_ltk_info(GKeyFile *key_file, > > DBG("%s", peer); > > - ltk = get_ltk(key_file, peer, bdaddr_type, "SlaveLongTermKey"); > + ltk = get_ltk(key_file, peer, bdaddr_type, "PeripheralLongTermKey"); > if (ltk) > ltk->central = false; > > @@ -5780,7 +5780,7 @@ static void convert_ltk_entry(GKeyFile *key_file, void *value) > g_free(str); > > g_key_file_set_integer(key_file, "LongTermKey", "Authenticated", auth); > - g_key_file_set_integer(key_file, "LongTermKey", "Master", central); > + g_key_file_set_integer(key_file, "LongTermKey", "Central", central); > g_key_file_set_integer(key_file, "LongTermKey", "EncSize", enc_size); > g_key_file_set_integer(key_file, "LongTermKey", "EDiv", ediv); this is just not going to work. You are going to break existing installations that upgrade to a new version. The storage format, D-Bus API and libbluetooth API are something that you can not search+replace. Regards Marcel