From mboxrd@z Thu Jan 1 00:00:00 1970 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 6374FC07E95 for ; Tue, 20 Jul 2021 13:48:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3F72F611C1 for ; Tue, 20 Jul 2021 13:48:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238651AbhGTNHc (ORCPT ); Tue, 20 Jul 2021 09:07:32 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:36472 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238919AbhGTNGB (ORCPT ); Tue, 20 Jul 2021 09:06:01 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 782B82247C; Tue, 20 Jul 2021 13:46:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1626788776; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uMlrdA+/UMzkPJcXUWkwFUo9AMLnvZgUzGLvDhUlDfY=; b=HosdR5jIU3MjRpOJlGOLT4jg2q3PuJISXAts3JkjIVGkT3g+yc7iRiRoSp5MYkW44i5IVM cT+DdM1PvSExkBRLeS6JdR2xhXl98dNStlwrz6T/lP/5797Ml8BExTumeF/DLk2s4wg+jc awj2di14prwbYkdFp6/F3avoaijobRM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1626788776; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uMlrdA+/UMzkPJcXUWkwFUo9AMLnvZgUzGLvDhUlDfY=; b=Zz+M550mtZjTHVh14OESAgzpkMvMvueKjJjc8jtPgkGNBeOfyVkG2BN7SFHoIxdtvxiVGT 1sFHUCd2/C1kYWAA== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id D73C313B87; Tue, 20 Jul 2021 13:46:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id Z/XNMqfT9mBReQAAGKfGzw (envelope-from ); Tue, 20 Jul 2021 13:46:15 +0000 Date: Tue, 20 Jul 2021 15:46:13 +0200 From: Petr Vorel To: Tianjia Zhang Cc: Mimi Zohar , Vitaly Chikunov , Stefan Berger , linux-integrity@vger.kernel.org, Jia Zhang , "YiLin . Li" Subject: Re: [PATCH ima-evm-utils v6] ima-evm-utils: Support SM2/3 algorithm for sign and verify Message-ID: Reply-To: Petr Vorel References: <20210720075153.17158-1-tianjia.zhang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210720075153.17158-1-tianjia.zhang@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org Hi Tianjia, > --- /dev/null > +++ b/tests/install-openssl3.sh > @@ -0,0 +1,17 @@ > +#!/bin/sh Tests heavily use bashisms like [[ ]], which is not a problem when shebang is /bin/bash. There is no bashism in this script, but be careful to use /bin/sh in project which contains lots of bashisms. Kind regards, Petr > + > +set -ex > + > +# 3.0.0-beta1 is the latest version in July 2021 > +wget --no-check-certificate https://github.com/openssl/openssl/archive/refs/tags/openssl-3.0.0-beta1.tar.gz > +tar --no-same-owner -xzf openssl-3.0.0-beta1.tar.gz > +cd openssl-openssl-3.0.0-beta1 > + > +./Configure --prefix=/opt/openssl3 --openssldir=/opt/openssl3/ssl > +make -j$(nproc) > +# only install apps and library > +sudo make install_sw > + > +cd .. > +rm -rf openssl-3.0.0-beta1.tar.gz > +rm -rf openssl-openssl-3.0.0-beta1