Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6CB76C433E0 for ; Wed, 10 Feb 2021 08:32:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2503F64E4B for ; Wed, 10 Feb 2021 08:32:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229451AbhBJIbx (ORCPT ); Wed, 10 Feb 2021 03:31:53 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:32050 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229839AbhBJIbQ (ORCPT ); Wed, 10 Feb 2021 03:31:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612945790; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qcVgQraBw5PgsGVvVLBD0on1pKnJN9TwEpaKo1fWo0E=; b=RJqTQXeVi3koyEugUFhK/ir2pLABWi1tdlxvQ6infewyu78Ad88LY6W1mjJpz4D+E7ehBE q1l9/RNjbUjr4rf5Ga18/v4+rLsO726j4n+Tsvs+Ci+5sWiAOH2JNEs2NcxWMj54wyf4Ey SJRIGbWehpvqC+Ka1KLiq4J9DZ1UhKE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-312-7Wvpi0goNve8RpadM8uzzg-1; Wed, 10 Feb 2021 03:29:47 -0500 X-MC-Unique: 7Wvpi0goNve8RpadM8uzzg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 70A25846208; Wed, 10 Feb 2021 08:29:46 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-115-23.rdu2.redhat.com [10.10.115.23]) by smtp.corp.redhat.com (Postfix) with ESMTP id D81AA18B42; Wed, 10 Feb 2021 08:29:44 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20210210074554.81100-1-songyang@linux.alibaba.com> References: <20210210074554.81100-1-songyang@linux.alibaba.com> To: Yang Song Cc: dhowells@redhat.com, dwmw2@infradead.org, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, zhang.jia@linux.alibaba.com, tianjia.zhang@linux.alibaba.com Subject: Re: [PATCH] sign-file: add openssl engine support MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <664915.1612945784.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Wed, 10 Feb 2021 08:29:44 +0000 Message-ID: <664916.1612945784@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: keyrings@vger.kernel.org Yang Song wrote: > + "Usage: scripts/sign-file [-edp] [] = []\n"); Do you mean: "Usage: scripts/sign-file [-dp] [-e ] = []\n"); > + opt =3D getopt(argc, argv, "sedpk"); "se:dpk"? > + if (use_engine) { > + ossl_engine =3D argv[0]; use_engine ought to be a redundant variable. David