Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp659694ybm; Wed, 22 May 2019 09:23:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwh2mwzjRMdy5APbsKOHSsFXOyEEtyFn0F0rqL5/iMUdgcBjWbc4+Oomm1nnqDkeV/HGNEP X-Received: by 2002:a62:5bc1:: with SMTP id p184mr58677578pfb.154.1558542181916; Wed, 22 May 2019 09:23:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558542181; cv=none; d=google.com; s=arc-20160816; b=x0Bnj4/w+aGCgWoNirQPyclS/8/WYZ+ms8rivCB1/EGGfVBwfFZk51Er42kXey4tHA jRgWpLl4WAmL5GeJGewW/45o7FcxNsku5CD+a+T/aYZgIp1p21fxU239RV3yWcadQvOX ASofr6KDdPH3J/q1HjsU+yHG/XpsNtkA1DQjAP3saPWT3aq2vONjDRozl1FftVTbdbRi GQ7oUhGOxVC3AXeyNyn0+qkzO3K0cXuw8FFXIW9LIGVVkq5X5zzehalEqfd3YGtIIXLs yYp00/Jky7y7E3QC3gD3Pmk/uAbf5Uc3bVlQK7R1rkRmuGOvlDF2ma9m9STKEOX35Km9 gnrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:to:from; bh=ofCliuV+ILegy+vEL9byhj/Z8VshL2jp3IZjAo/eyzk=; b=fo397UH+3hsFP3aWPZ103rpCIPN8BWMAYYRzngivvimYz13n0tPkzLwU06d6ODV2HD rXf9YoDnHVWEp31Q9dZShLDAOBKbwFi2AOOZSQL0yLxrbaZkyqCqzTfAAV4EQhImDxL4 1XrX4/+Pl4PgwJgL78VU8dMmGkS/84nZMbt2PKzTBPUSF79sbsd0wWkZoIWD6dEbkZwp mUsOVwRdrQaERr4FB2trxAy498Za6kG6Mr+phhZK45anECguD0zqQWK15w3L9q+ZMnSP LKaQ4ta0TDWhnrJ3emsS17S78rlhn/2CXmsl2oO7zl0zmb8SXs784y4N0yKapzLGNtsY KXXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10si24797221pgp.529.2019.05.22.09.22.28; Wed, 22 May 2019 09:23:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729940AbfEVQUJ (ORCPT + 99 others); Wed, 22 May 2019 12:20:09 -0400 Received: from mga12.intel.com ([192.55.52.136]:54788 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728638AbfEVQUJ (ORCPT ); Wed, 22 May 2019 12:20:09 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 May 2019 09:20:08 -0700 X-ExtLoop1: 1 Received: from orsmsx109.amr.corp.intel.com ([10.22.240.7]) by fmsmga007.fm.intel.com with ESMTP; 22 May 2019 09:20:08 -0700 Received: from orsmsx103.amr.corp.intel.com ([169.254.5.182]) by ORSMSX109.amr.corp.intel.com ([169.254.11.251]) with mapi id 14.03.0415.000; Wed, 22 May 2019 09:20:08 -0700 From: "Gix, Brian" To: "linux-bluetooth@vger.kernel.org" , "Stotland, Inga" Subject: Re: [PATCH BlueZ] mesh: Add App and Net Key Refresh keyring back-end Thread-Topic: [PATCH BlueZ] mesh: Add App and Net Key Refresh keyring back-end Thread-Index: AQHVD/bgEYgjioJrZ0O+xrFGHkWFPKZ3KOkAgACg74A= Date: Wed, 22 May 2019 16:20:07 +0000 Message-ID: <1558542005.332.15.camel@intel.com> References: <20190521170135.32057-1-brian.gix@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.255.78.4] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org SGkgSW5nYS4uLiBJIHdpbGwgY29ycmVjdCB0aGUgdmFyaW91cyBzcGVsbGluZyBpc3N1ZXMsIGFu ZCBwZXJoYXBzIGFsc28gc2VnbWVudCB0aGUgcGF0Y2hlcyBhcyB5b3Ugc3VnZ2VzdA0KDQpPbiBU dWUsIDIwMTktMDUtMjEgYXQgMjM6NDQgLTA3MDAsIFN0b3RsYW5kLCBJbmdhIHdyb3RlOg0KPiBP biBUdWUsIDIwMTktMDUtMjEgYXQgMTA6MDEgLTA3MDAsIEJyaWFuIEdpeCB3cm90ZToNCj4gPiAN Cj4gPiArCXN0cnVjdCBtZXNoX25vZGUgKm5vZGUgPSB1c2VyX2RhdGE7DQo+ID4gKwl1aW50OF90 IGtleVsxNl07DQo+ID4gIAl1aW50MTZfdCBuZXRfaWR4Ow0KPiA+ICANCj4gPiAtCWlmICghbF9k YnVzX21lc3NhZ2VfZ2V0X2FyZ3VtZW50cyhtc2csICJxIiwgJm5ldF9pZHgpKQ0KPiA+ICsJaWYg KCFsX2RidXNfbWVzc2FnZV9nZXRfYXJndW1lbnRzKG1zZywgInEiL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