From 1d053f6e2341dae1b2c48a422fbb5ce46a3bbefc Mon Sep 17 00:00:00 2001 From: Gaurav Shah Date: Mon, 27 Aug 2012 20:49:40 -0700 Subject: [PATCH] vbutil_keyblock: Fix argument to PrivateKeyReadPem() If the --signprivate_pem option is used to vbutil_keyblock and without an external signer, we were passing the wrong name to PrivateKeyReadPem() causing all such invocations to fail. This CL fixes the typo. (This particular path isn't current being used.) BUG=none TEST=manually verified with --signprivatekey_pem but without --external_signer. BRANCH=none Change-Id: I56df76a965706f654df1de8ac6e42738c15284c7 Reviewed-on: https://gerrit.chromium.org/gerrit/31556 Commit-Ready: Gaurav Shah Reviewed-by: Gaurav Shah Tested-by: Gaurav Shah --- utility/vbutil_keyblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility/vbutil_keyblock.c b/utility/vbutil_keyblock.c index 96436085c8..a26d7a9985 100644 --- a/utility/vbutil_keyblock.c +++ b/utility/vbutil_keyblock.c @@ -115,7 +115,7 @@ static int Pack(const char* outfile, const char* datapubkey, flags, external_signer); } else { - signing_key = PrivateKeyReadPem(signprivate, pem_algorithm); + signing_key = PrivateKeyReadPem(signprivate_pem, pem_algorithm); if (!signing_key) { fprintf(stderr, "vbutil_keyblock: Error reading signing key.\n"); return 1;