Message ID | 20211028062356.98224-2-takahiro.akashi@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:ac0:c404:0:0:0:0:0 with SMTP id t4csp1370505imj; Wed, 27 Oct 2021 23:25:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrIf/wdAXm81owV1nITTaUwZFUj0OtH9abIemnzJcHr6DtEB8aWggmXf0pM9iGw2WbzJ/r X-Received: by 2002:a05:6402:2814:: with SMTP id h20mr3395959ede.47.1635402310261; Wed, 27 Oct 2021 23:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635402310; cv=none; d=google.com; s=arc-20160816; b=OuvNje8Ag9iGm90kfEQcFWD7bSgjBKDjaU9/wTg40IxLfAVeYyGVuM3HZL/lu5jU8f KFF+isUzucaW6u3e/mHHD54A4/8KCl2W4kOETJ+OyqDnx9GHFVKb5bwJN174rNDTarpu VBSMR1XKBwxvg8jJ7Lgk5vl7OGZMPeZl5WId272Zlwk2T/otSBKiw0eXirynBxXCDZ2J 7NOebP3nzsIuI3wy4Y0wQ3GRm/WawwotWq64FYrKfYCVNmvFpw1yx1raMZ3hqx0eK9E/ /SJzcwpIclAf9yvRQHui9tK2WAyBCjVdE42kmdqmrEKg4GBoP57bAqch4CYYh/z2e5cO xrOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=H343WbJCkVtwQNBXT/D6iVv2TdTLO06TEu7YEdAdyCc=; b=a+fzahqunH/aS1T+fSmsbs0WoV9xC62+X5OFAmrpzU/LnFtRmAR4Ak4p1kHP2sHCz2 eaZ+j7VWLoUwgZ0zPwGA8m3BgH75nlUxq/VZFZUmpvpJwTqiOF8pEfbKsuO2J0QMGkge qmEuF0oUqtyGJhl4ukC3mZvn42fGHv7lJ7Hd095J1kQXqPJnXiWJKLceLOBooWZyliIJ rGe4L17PaYf+px8znqIud5Ga7S5FRwXYk/TTjlJ1HTfImjS0ZQh8Uc/98MQDstImOQT8 quPwbD6OvvbrD66Mva2BOQJCYraWVW1NoX9finmaHznK2AXHv/3ihc+VbLrwNMo2itvQ gy+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CCwunNj9; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id hp2si3591194ejc.711.2021.10.27.23.25.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Oct 2021 23:25:10 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CCwunNj9; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5FDF783498; Thu, 28 Oct 2021 08:25:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="CCwunNj9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 24169832AF; Thu, 28 Oct 2021 08:25:00 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0891A82F33 for <u-boot@lists.denx.de>; Thu, 28 Oct 2021 08:24:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pg1-x536.google.com with SMTP id r2so5371617pgl.10 for <u-boot@lists.denx.de>; Wed, 27 Oct 2021 23:24:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=H343WbJCkVtwQNBXT/D6iVv2TdTLO06TEu7YEdAdyCc=; b=CCwunNj9HxRbo5LDT7VKpzQPWWbIsK6luMTDukn+5u+f3vQRTQwdYZZlyIiDhzmlQt LgUmz/ZFWyGeHl8mYZ1gSyKl74PwfWWi2c1uLJhfkw10pxi+ZWNk6MH0ALO6oh0ShIpD k/StqL0akk0LSMk4gxdVD6nkfUpnEcNAaL7zzOixr0dcfJhsNV8ksGARUikfeTo2VjZX dPtw4W40kUsUvE7/SdU3YUqSwr1bckLX5vR8GPBkYhHHkZmGtwGSK34hyKpuvc7Rb7Jg 4x44axNphHI8rNTSVxAgOSn5xdhbF8GLr+FoqoNkOgxZK3MdzE8YtZqS2MklU6Ks4Ty5 E2Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=H343WbJCkVtwQNBXT/D6iVv2TdTLO06TEu7YEdAdyCc=; b=Xun1CkcHmq/oYBgPVxMVhS0OWiR/aaXrNmCf5hXKpQAyZGL2UsLS9N8nNmr3dFWEfK 3frHISPKOPPanq6TuaBcwmKp4O0G+hs7iiOJUc8jA2BwX/QzIZbTAOIbOn835cGbhUAi k2CW/jgh6xfKozv6jHAszvrHTA6V6sM+7bxW6p1zrzTGPlojdmgYT0PT9C/YJ1IRFs+t vuuKIgA5BCqsUuNRAHopmEpXDCtgqQxcr0qbHKvF13I50ibdtB/CLp0hDodeyFjab/JX Fv6xfhU6OE8Hah7Wctux3lPt2BBZdeVW/BW1PlhII7vEvKelgVs9v2pKm94WLe4ejq6d 5yIQ== X-Gm-Message-State: AOAM532NXyw8UHEZ32P9cMBY+4Xmnw+FukW5F9eRnlZZ/myPepxPpvtJ PJoxT7BZS+0UYHuVAGjKRFoNoQ== X-Received: by 2002:a63:6dca:: with SMTP id i193mr1797290pgc.205.1635402293328; Wed, 27 Oct 2021 23:24:53 -0700 (PDT) Received: from localhost.localdomain ([2400:4050:c3e1:100:394a:97ee:bbbb:462e]) by smtp.gmail.com with ESMTPSA id p16sm1582018pgd.78.2021.10.27.23.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Oct 2021 23:24:52 -0700 (PDT) From: AKASHI Takahiro <takahiro.akashi@linaro.org> To: xypron.glpk@gmx.de, agraf@csgraf.de, sjg@chromium.org Cc: ilias.apalodimas@linaro.org, sughosh.ganu@linaro.org, masami.hiramatsu@linaro.org, u-boot@lists.denx.de, AKASHI Takahiro <takahiro.akashi@linaro.org> Subject: [PATCH v5 01/11] efi_loader: capsule: drop __weak from efi_get_public_key_data() Date: Thu, 28 Oct 2021 15:23:46 +0900 Message-Id: <20211028062356.98224-2-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211028062356.98224-1-takahiro.akashi@linaro.org> References: <20211028062356.98224-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
efi_loader: capsule: improve capsule authentication support
|
expand
|
On Thu, 28 Oct 2021 at 00:24, AKASHI Takahiro <takahiro.akashi@linaro.org> wrote: > > As we discussed in ML, currently a device tree is the only place > to store public keys for capsule authentication. So __weak is not > necessary for now. > > Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> > --- > lib/efi_loader/efi_capsule.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass <sjg@chromium.org>
diff --git a/lib/efi_loader/efi_capsule.c b/lib/efi_loader/efi_capsule.c index 44f5da61a9be..850937fd120f 100644 --- a/lib/efi_loader/efi_capsule.c +++ b/lib/efi_loader/efi_capsule.c @@ -256,7 +256,7 @@ out: } #if defined(CONFIG_EFI_CAPSULE_AUTHENTICATE) -int __weak efi_get_public_key_data(void **pkey, efi_uintn_t *pkey_len) +int efi_get_public_key_data(void **pkey, efi_uintn_t *pkey_len) { const void *fdt_blob = gd->fdt_blob; const void *blob;
As we discussed in ML, currently a device tree is the only place to store public keys for capsule authentication. So __weak is not necessary for now. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- lib/efi_loader/efi_capsule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.33.0