mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 18:25:10 +00:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user