Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4794474pxb; Tue, 5 Oct 2021 10:26:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrKIepUN0X1GRMrj/O5pln4d8nWO2MA71ZpPbNWdoOwlhIh7iJ4b0oWnrSgguA/RRNiWH/ X-Received: by 2002:a17:90b:3ecd:: with SMTP id rm13mr5252541pjb.189.1633454790641; Tue, 05 Oct 2021 10:26:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633454790; cv=none; d=google.com; s=arc-20160816; b=n37WlFw9bWzOJYftjKvapWpUBtO66l+6FGGuxWZAFx0eGz9jO+44gvEKOx6uMufk4v zoOANS0+O47N9CEfkvhstMhZhdvbSSwi7GBOZ0KD1kZcBReorenbaknjif9jrBDxeZ9/ FrlCZk/Gr/hJwSeGRHhr4xYkkGUI4LcNeOQHXxYVKP/k4rDTxz0N6P/CbKctXryJATaa f3dKtpWghxLClgPswXI1elCvqjIysp/MmsvaicYrV/YRV3DTPXVjtzsDuXY2BqzySzRz 1MxHKJJx9lSzn8jhr9wELP/drMpQKv87mMxzrjRagFEaPaAbr6rBeeJCaowmU+XESxcO kvKg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=99BI6xRaXlU89qPO6LPBGEW1NdNx9zbB+9ClCKh/E7Y=; b=VRsRa+GcXP7ihiBrFM/HyrnExqIyJsHgt3T5GhKgTyg72bnX6c1mTD8h9lpPLoSpZc a9VClYmY/xUhux3+mWXMqIw4aTZcKZLK4w+sl4WR0eVT2o80RXa15zd5YrEhJ24Spn1x BeBeipX2w92oOl51pVnvsEZKKEBOWUNBiKqdaHKzsqjK8XyeOaLsx06AAZ7TO4ozi8fq vXG2tPCP1+Do1TR+cbo8ZCGW0k4W5NozkbAQ3DlQL599LNwIjniGmLR5Yj0Uun9JeslD A5zKKnNxuJZNOwLdUn317Pi7UZPCzkSfPBeoa4hQ8M1wt9MrzFQiyokrx7NeTfpls4KP vA5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MxFVy8UW; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u185si1322359pgd.91.2021.10.05.10.26.16; Tue, 05 Oct 2021 10:26:30 -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=@kernel.org header.s=k20201202 header.b=MxFVy8UW; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235894AbhJER1A (ORCPT + 99 others); Tue, 5 Oct 2021 13:27:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:58624 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235351AbhJER07 (ORCPT ); Tue, 5 Oct 2021 13:26:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0FF6F61350; Tue, 5 Oct 2021 17:25:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633454709; bh=DoaVxkaQfbnOf+3o+qFy6q0S/2R64repQVszE9mXb+8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MxFVy8UWfmVAMk+Xtrj9nxFyd5CdgQueuHVxOK1MDG97N31aPgTeEmNy1/UeRuJ1L NaC2j88q8gRJnJpDdCW95/gWB/HkWp4Gk/C8wBY3WnmY5QBqzIThPGhmpH44gqbCqK U/QiArhEZ4es14Js0Bc+I4TEZJEbmMGYTUXcMtCFAQ+q727uy8VOOARFIv+xR6RSjB DUApKTUw35sCdHMyGRjHGBk2MqzCJqqYNdn5UvffHY+V3hNfJCaz5pIlrp9s2lDwNl HZCsseUd0kJrKBheuPb19ZufmpL965ep79znRBz4TKoOIzhGQUNHeLRwPrQzNuayxe ZEIRGlefQJ76A== Date: Tue, 5 Oct 2021 10:25:07 -0700 From: Eric Biggers To: Adam Langley Cc: Lee Jones , 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=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Currently this patch claims that it's removing the use of a "deprecated" API, which is something entirely different. - Eric