Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5916577pxj; Wed, 23 Jun 2021 11:47:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxS+n4W/Q0PHi88LLO3vkLdrqFDEKEgc1MEozArR8VbXfHK2eu4IFKLHeJMuT0ISqinh2zS X-Received: by 2002:a05:6e02:1a43:: with SMTP id u3mr652232ilv.178.1624474054967; Wed, 23 Jun 2021 11:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624474054; cv=none; d=google.com; s=arc-20160816; b=sDotb4xDrrSu9G7o1i6ZxEhK6ZwPU0f01g/3nWgq7awdE0km+IWzLPDVFdcaOnvmI7 ggTdZgpWKYm/teBvJyQ3qi07cVuq6KY90tk3QMTgsFPR7C1pGFzf/ZeBksc37KfJB6q/ RD5VmC97/T3T34xUMYsUpgcSTjtcU2Yy9fzqPP+LhAEDS8m8sAFrJYOPaqKZiOmvt7rp m2wJuq9javYLk8UuAegoNw4LHYU3tF/SC3OEiUlTIFAnCoSnsJ9preXFA172zvDvQAts VqcmtGSG4iNcgvRgYn4sAHGzrErHsRFul2yegnD8toTq6mCe29/2Rj4meN5Hyzn40mgw bXXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=e6P3kraw0EI11wZ+HhoLdtIBp/esKySiKV8q26GFR8E=; b=JGQRI9VUVMePcdExTxnFKcwmxAzQyCp7p8mNR2UpYuhTrqJxQnRGFzPz6QcTaiArhl mjILkZDMQ3VKBA/1+5EZYV7AxshorcAjPcSKbnBuBXak93j1C84O5nPXXas/Vmn6mwWM qakdV0Wv13sZGTBlDoji1aH5ee3lb2ULnJnShX3IkXS9EW0Bfpyrs7Lc4Lq7OnR0ygeK fVifZo4dt16cpsyrdNEjU5MbRC86xvxujFkDqvangOvm+4+4EsCapJPCaup8t9iciyPn jsZhxeyrxDpxb870hhdkGC/tUokd7tcZ2+e0mHJr7w8HTKEO1yzwHylb9ORKHN5pN5RS fsnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sOqvYkM8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w21si823199jal.38.2021.06.23.11.47.21; Wed, 23 Jun 2021 11:47:34 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sOqvYkM8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229850AbhFWSr5 (ORCPT + 99 others); Wed, 23 Jun 2021 14:47:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229844AbhFWSr5 (ORCPT ); Wed, 23 Jun 2021 14:47:57 -0400 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99E5BC061574 for ; Wed, 23 Jun 2021 11:45:39 -0700 (PDT) Received: by mail-qk1-x736.google.com with SMTP id c138so7788664qkg.5 for ; Wed, 23 Jun 2021 11:45:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=e6P3kraw0EI11wZ+HhoLdtIBp/esKySiKV8q26GFR8E=; b=sOqvYkM8YYDd84uvKWyF5clfE7A8uHPSGul61OH4g6N0KR0T0GoFDxeK+dLLjX72p4 Y1OLWb8JjqqMu+o92lasM8ofk7OBJRYTd9Hc2t5saRNhin6hLS/BDxtzcW0P/Akg5XAa efdSq0RcynzxGbWBbxotbE1R1qr5E8EL7XGWM7lTR/mwZUYPpd7CLgEef3kBFmrDTAbD YRYgLsc4AJXSESBqvssOtAeW28ryFRHqrz5nydNx1GRgjG0WUpcykMtoB1KMwDOLibWn NFYKACTp2/RoKC6OBIsQI1Ks93mtqAXq+saM0Dfpsi02EylTfY6kYRg8llmFbzdY5RsM VfWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=e6P3kraw0EI11wZ+HhoLdtIBp/esKySiKV8q26GFR8E=; b=pLHIl5b/7+pdE1xBCOyCTIgXHGYeS/vX5vcFE9fB8j33K5aOKi6CRvS7mkobvP4I5t IQBhzSENYuSfMkJn8PcE3RsflNARNf5qBkuT5G8YTdmDebnIOk2fE0lsT4asqJ6KYNfT kq1A80HVIr1h55CCBW9+UaqdxUJWDw8eiGcUYmk1fbig91uW8W4CdDcZ9BZk3GJ+0dMs hIBrit+vlf61jVFvtbTriy2ZoWIkpObUgi1YjNdy5ul9ft1nNo/PF1Rr6+ejiyW4WNfH aNqUsi98VnQJpVbe0OszGv0IpEhiMmbZDGse4kLn5Rvxvp59XsMBoRRac0w19uwohgD0 pXVg== X-Gm-Message-State: AOAM532WR61Z1yAbSosJwvBdfWMwgZnlDWe4OfTCBt71f7N0xbd5KBWp 66tCPImFJFBMM13KNaYMFVKBRyUq1elbQJN3B157gDgUa9Q= X-Received: by 2002:a25:68cc:: with SMTP id d195mr1214615ybc.264.1624473938542; Wed, 23 Jun 2021 11:45:38 -0700 (PDT) MIME-Version: 1.0 References: <20210623184355.3685859-1-luiz.dentz@gmail.com> In-Reply-To: <20210623184355.3685859-1-luiz.dentz@gmail.com> From: Luiz Augusto von Dentz Date: Wed, 23 Jun 2021 11:45:27 -0700 Message-ID: Subject: Re: [PATCH BlueZ] doc/agent-api: Add AuthenticationFailed method To: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, On Wed, Jun 23, 2021 at 11:43 AM Luiz Augusto von Dentz wrote: > > From: Luiz Augusto von Dentz > > This introduces AuthenticationFailed method which is used to indicate > when there was an authentication failure with a remote device which is > recommended by the core spec: > > BLUETOOTH CORE SPECIFICATION Version 5.2 | Vol 3, Part C page 1314: > '5.2.2.3 Simple Pairing after authentication failure > When the link key is stored, subsequent connections to the same device > will use authentication but this may fail if the remote device has > deleted the link key. Table 5.2 defines what shall be done depending > on the type of the link key and whether bonding was performed or not.' > > So following Table 5.2 recommendation the AuthenticationFailed method > would be called when authentication fails with a bonded device. This was intended to be an RFC. > --- > doc/agent-api.txt | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/doc/agent-api.txt b/doc/agent-api.txt > index 0d9347cab..91d752b0a 100644 > --- a/doc/agent-api.txt > +++ b/doc/agent-api.txt > @@ -183,3 +183,8 @@ Methods void Release() > > This method gets called to indicate that the agent > request failed before a reply was returned. > + > + void AuthenticationFailed(object device, byte status) > + > + This method indicates that there was an authentication > + failure with a remote device. > -- > 2.31.1 > -- Luiz Augusto von Dentz