Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4831180pxb; Tue, 5 Oct 2021 11:13:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXX2DgKjTs/KOH3Wq6AZn24qGZHCaxRZckOEwSVLFdFL7x+/BnUFJ18LvudYUuVOC7Hele X-Received: by 2002:a17:906:64a:: with SMTP id t10mr27722092ejb.5.1633457585781; Tue, 05 Oct 2021 11:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633457585; cv=none; d=google.com; s=arc-20160816; b=hLjvlJbd7a3LQBHDmawBZGkCFa5qPaGVBSxmNwnmYmrtTkbf3JCk5/u1dyP1DBrVlk 9hLfon+S6pGGA8pFZoJaIYeh0nGxoWBcU7PBc9cqdBxZnIwtsDAMilIN5uJ0ru/Snvev Vs/zHBQlNsgRWpiSeUtldHJpcZpWe7157fTqUjHLDkyZ3O3u0lSBwLm7aAFPSVcoTfRa VrCmPgYvF+j0mWkJ3MDoN0d/uwBgfKgFmFp6xq9OYDEkdH4r1VjE15M19RJWkT0BZt9M XKI5LJnyjV+OCuelKW3Tf0m5aItln2yDGwTGVU+Cd1kEBNKXJZtu3UuoGoAUQwxKFQug Zs4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2AmJ6vZK0+G0ZrvpMt62Pt7w266KkCvO13RMS0+WCJU=; b=eZ0TqJO84VpskFrLSdrUfL7wv5naGyiM5LTTKrPI3my7ClekuX1mFH6PTKbQrFgNLE pkmy4dF4vjkyw0DQlhznv0x2k2/JqJsJHS4GIgJzOdBUoNzvrilmiIWsQJ9YI6u5r5kJ g+nobUZHUe9o5xukP232VhVJpmF1SPjk6/gIb/RpLo4IgbQohNFRRkn3cCwzo1Vqhj9G Vgqse9S7a11Upscdy0oES0jZmyUQLUycC0ICMog5qcUl16O6EHHHwEDmr9A/Fjype8gr NoyuJwCTK+G1OyQICt01q/KlsTKAKaIIKNCuzH8rMbUU6DOhKqvgL1xwfcB9snUVF1ts uYOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sVPFNmYD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u14si23356367ejy.78.2021.10.05.11.12.42; Tue, 05 Oct 2021 11:13:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linaro.org header.s=google header.b=sVPFNmYD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235015AbhJESM6 (ORCPT + 99 others); Tue, 5 Oct 2021 14:12:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232861AbhJESM4 (ORCPT ); Tue, 5 Oct 2021 14:12:56 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00287C06174E for ; Tue, 5 Oct 2021 11:11:05 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 63-20020a1c0042000000b0030d60716239so792096wma.4 for ; Tue, 05 Oct 2021 11:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=2AmJ6vZK0+G0ZrvpMt62Pt7w266KkCvO13RMS0+WCJU=; b=sVPFNmYDN9rlhW4zEqU1EsMTyqIJmDi/EVk/iWjtAob+VydsVOgdQs82Q2j2aQO4c+ KaVex6CE91yxhnfqLt/+sI9MI3kVk+fb9G/SJ9sTqOyt0m7u77hJPRMlvLlSudw8snnu xoWdKbPaKtdXjauiTd6SbBgtJQpLmfR5Fs0qQlLaHrgUALCbUhMHl7dobqlZgt7dQ8En j2QausMBjQplsY/Mbyi1Gg4/6pOXG2aTBLDI9iI3tV/aBAxZ3hGa3lz60uC6B5FQmGsE qkkgT3X1vYkiL5J4yiGDpqOx26O1ozxmyB/fOTdhE8LRDUpyolsB0piuGehEmXgtrL0J fzpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=2AmJ6vZK0+G0ZrvpMt62Pt7w266KkCvO13RMS0+WCJU=; b=n8bTXAqALNtNH7TPKuOe3HE6CPqqwsahLYoiOqieUQw+sh0R45D1LHKqfwAyaCINgP 31BuXx7tRZNgTfk1xj7QMV7AyDr9bzcSMRmxQMiMJt6t6WnSkUhubaNsFad+DAZpo7R3 bCzViDEGifWrPnjgZokWvwg7rUXzQUy3UyTQwHzOhxbvpdZ9KzZFSAAdesgz4ZIhuX7D v0A1dp74s0e6qdTdm0e5I/t+79JN1dpgbjhIa9qH2HcDO2S9o7ZHM/1QHMTT5WXwLOm+ 9LcG/gDQipVriyAVcrCESlpuDTbiJFczcYISG0Ge5TbWaemj+RUrReShyq4a1ZOcyZLw Nd+w== X-Gm-Message-State: AOAM533r8vIBVk+zrJf54blSvvF5fv0xiVP8EDCSs6/Np/DWZCiqPIPQ 5+CQ5XjfDML65GYb4Jusq4Brnw== X-Received: by 2002:a1c:2904:: with SMTP id p4mr4911298wmp.49.1633457464303; Tue, 05 Oct 2021 11:11:04 -0700 (PDT) Received: from google.com ([95.148.6.175]) by smtp.gmail.com with ESMTPSA id k17sm18491847wrq.7.2021.10.05.11.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 11:11:03 -0700 (PDT) Date: Tue, 5 Oct 2021 19:11:02 +0100 From: Lee Jones To: Eric Biggers Cc: Adam Langley , linux-kernel@vger.kernel.org, David Howells , David Woodhouse , keyrings@vger.kernel.org Subject: Re: [PATCH 1/1] sign-file: Use OpenSSL provided define to compile out deprecated APIs Message-ID: References: <20211005161833.1522737-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 05 Oct 2021, Eric Biggers wrote: > On Tue, Oct 05, 2021 at 10:14:58AM -0700, Adam Langley wrote: > > On Tue, Oct 5, 2021 at 10:01 AM Eric Biggers wrote: > > > I ran into these same -Wdeprecated-declarations compiler warnings on another > > > project that uses the ENGINE API to access OpenSSL's support for PKCS#11 tokens. > > > The conclusion was that in OpenSSL 3.0, the new API for PKCS#11 support isn't > > > actually ready yet, so we had to keep using the ENGINE API and just add > > > -Wno-deprecated-declarations to the compiler flags. > > > > > > Your patch just removes support for PKCS#11 in that case, which seems > > > undesirable. (Unless no one is actually using it?) > > > > The patch removes support when OPENSSL_NO_ENGINE is defined, but > > that's not defined by default in OpenSSL 3.0. (Unless something > > changed recently.) > > > > When OPENSSL_NO_ENGINE is defined, ENGINE support is not compiled into > > OpenSSL and the headers don't include the functions: > > https://github.com/openssl/openssl/blob/master/include/openssl/engine.h > > . > > Okay so this patch is actually a build fix for when OpenSSL doesn't include > ENGINE support? Correct. > Currently this patch claims that it's removing the use of a > "deprecated" API, which is something entirely different. I see your point. Happy to rejig the commit message if that would help. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog