Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp711138pxm; Thu, 3 Mar 2022 03:08:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpAkk8NFOVqXGyNPkPyhEL3uGkdPlnWIsT9y2kpi8irTrBkh8fGD/R/3zcLPEzIa9tTUdO X-Received: by 2002:a17:907:6da2:b0:6da:94a9:b7f3 with SMTP id sb34-20020a1709076da200b006da94a9b7f3mr1347898ejc.692.1646305715886; Thu, 03 Mar 2022 03:08:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646305715; cv=none; d=google.com; s=arc-20160816; b=TbexNcqhURJ7DL02eRJZEWhKyogL9/5o/9YDuC0u4oj/Noz+0cc1VjIWSZjL0dyL9S j3+Fo+reriS+N00+/5+wivKUWtjDJ6nwJ+DJoayaOjQSU2ggfhGuEqOFmEWgBUFJXEbY MB3uk7dklvjZvhEZkvQi6WdLIWDnNxjMz23tukGyvzyEcLkBvfmhfoy95twMnR5zo/7O WTgZ42pHG0UMLP8tESchIuRYBzyMzIsiSaohSM/a2nz7iB5CiX7wvouVPEF9EWz67kXp eqNCnv1q0TuGI06ch8RffOa1ywl2zAPfhBCd8ltGyC4yXdF6kG5AlmOYYrRnVxcDTC9y dHpQ== 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=XD9Qk7wqWwcBBnal1woY2MwuyfH3dPMdc0t0VTETirY=; b=E5ptpUGZp7WG9myYsY1lX2fk2LhzQAMe64YxyW+nExf1pcCEaLIwkqAQcXhE7jACFT s0AqsRtrzyJnd0B3Kao2j0tgjbvErzbgOyutteLIoCNpD7gp1M1g93QEaydniEKCaovY rIjvy85TlaPZpGMM83jzVmJJLeEEkn8JS0rqPJD22FyHyj/rCowhbuK0ba0foB7YRXkC /xCOabdoI8b9P4Hk8j3WME8JPKVISRUXjJ8Xqtw9YEGsdCnCC6oDRNtLFPdRxZpHRQDZ uWmDIR0WVZ9VHPSyVu4ZHT4t8fLwFDzHD4pfH7Muq8WK4gBxVgZ1xp+nu7yQrKG0gr3q CfiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jj835WVB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020a056402278e00b00415d58d8f1esi1209742ede.310.2022.03.03.03.08.11; Thu, 03 Mar 2022 03:08:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jj835WVB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231951AbiCCJ1I (ORCPT + 99 others); Thu, 3 Mar 2022 04:27:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231793AbiCCJ1G (ORCPT ); Thu, 3 Mar 2022 04:27:06 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29C35177777 for ; Thu, 3 Mar 2022 01:26:21 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id u10so5166152wra.9 for ; Thu, 03 Mar 2022 01:26:21 -0800 (PST) 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=XD9Qk7wqWwcBBnal1woY2MwuyfH3dPMdc0t0VTETirY=; b=jj835WVBPjikzv763/1NtVdeljcgnFRm5FOwaGSZc6GCkiLqdopn4eNxVgc0lM88CU 6wYGrTNCaGl7gJc+aeSw4kw1Wt1lfjEC6zfZWwuT1qnqx3iuDHgQOVCwGXnozOiTemUP U1XyxFLEiGZbhqne/cs6zBCu4YpWUw9YNFKMtGY5a0Bqq+ctm5Sqn9311q1sw3vzvRmZ VFOgmiayzChAbr1GZojk3MdIBFv5ZAKhplEI2KoFgkWCJk8qAS2FMF+Exyp5ks+7nDC3 FHu0wJsNgF9H5ddJrHozE/Sm5zs0B7klNLEpCuXp2RRkfiRqNQisi4mBWZodsJ0kvVAQ F6jQ== 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=XD9Qk7wqWwcBBnal1woY2MwuyfH3dPMdc0t0VTETirY=; b=DEOOGbX+g20xMsuZok+o968fg7cHzdptNIW1kNJ/CL7DXDtFMMJHMECbrX0bu/o7JT L2hI8Ei/MvIyfOkG0CjTHEW1xu44EDw8GcRpDZdvOl+6gpiYkI0iiXjv2t5OdPb5gehG 6hL8WIi4nBLxQlqvMmr3Z70FQFeQVWLG5R++xI1WiYs8WGCh/QDEkg5g3cZ0Tbem8Fi3 x/ZyQYVL/OZ6qLvtoh+12XpyrFUX7TobeDfcJAbSweNj+MxxowQ6Q5FMpwgt/DW3VXns usERkzzAb0dQ/n0VwufjThk6OWufe7oMFBiCzcOfZZlI39obQs3O0EwxsPXIZlQl1ZvQ zDXQ== X-Gm-Message-State: AOAM532Sy5/wnqfp0FjshIvYnwH3RwugAxUSZsn0dT4iUEqVcG/CPrd5 hJnor5/kET3vOETR3MbeN7XftweRbEn4UQ== X-Received: by 2002:adf:c3cc:0:b0:1ed:b641:6ee2 with SMTP id d12-20020adfc3cc000000b001edb6416ee2mr25715767wrg.529.1646299579701; Thu, 03 Mar 2022 01:26:19 -0800 (PST) Received: from google.com (cpc155339-bagu17-2-0-cust87.1-3.cable.virginm.net. [86.27.177.88]) by smtp.gmail.com with ESMTPSA id p5-20020a05600c358500b0038167e239a2sm1739485wmq.19.2022.03.03.01.26.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 01:26:19 -0800 (PST) Date: Thu, 3 Mar 2022 09:26:16 +0000 From: Lee Jones To: Kees Cook Cc: Eric Biggers , 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> <202203021251.1DB0383C@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202203021251.1DB0383C@keescook> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 02 Mar 2022, Kees Cook wrote: > On Tue, Oct 05, 2021 at 07:11:02PM +0100, Lee Jones wrote: > > 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. > > *thread necromancy* > > Hi, > > These warnings are quite noisy on Fedora rawhide and other distros that > have moved to OpenSSL 3.0. It's not clear to me from this thread if this > patch is actually the correct fix? I believe it is the correct fix. However the commit message seemed to cause Eric some confusion. Would you like me to resubmit? It would be nice to get some input from the maintainers at one point. -- Lee Jones [李琼斯] Principal Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog