summaryrefslogtreecommitdiff
path: root/utility
diff options
context:
space:
mode:
authorGaurav Shah <gauravsh@google.com>2012-08-27 20:49:40 -0700
committerGerrit <chrome-bot@google.com>2012-08-28 09:58:50 -0700
commit1d053f6e2341dae1b2c48a422fbb5ce46a3bbefc (patch)
tree67e1212beffbf669903d90a6740a8196eb7ff303 /utility
parent92951c813dc416c24d8a9eda39d037f46baeb077 (diff)
downloadvboot-1d053f6e2341dae1b2c48a422fbb5ce46a3bbefc.tar.gz
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 <gauravsh@chromium.org> Reviewed-by: Gaurav Shah <gauravsh@chromium.org> Tested-by: Gaurav Shah <gauravsh@chromium.org>
Diffstat (limited to 'utility')
-rw-r--r--utility/vbutil_keyblock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utility/vbutil_keyblock.c b/utility/vbutil_keyblock.c
index 96436085..a26d7a99 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;