diff options
Diffstat (limited to 'futility/cmd_gbb_utility.c')
-rw-r--r-- | futility/cmd_gbb_utility.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/futility/cmd_gbb_utility.c b/futility/cmd_gbb_utility.c index 2a76ecb1..8f21eee9 100644 --- a/futility/cmd_gbb_utility.c +++ b/futility/cmd_gbb_utility.c @@ -29,7 +29,6 @@ static void print_help(int argc, char *argv[]) " --hwid \tReport hardware id (default).\n" " --flags \tReport header flags.\n" " --digest \tReport digest of hwid (>= v1.2)\n" - " --roothash \tCheck ryu root key hash\n" " -k, --rootkey=FILE \tFile name to export Root Key.\n" " -b, --bmpfv=FILE \tFile name to export Bitmap FV.\n" " -r --recoverykey=FILE\tFile name to export Recovery Key.\n" @@ -61,7 +60,6 @@ enum { OPT_FLAGS, OPT_DIGEST, OPT_HELP, - OPT_ROOTHASH, }; /* Command line options */ @@ -78,7 +76,6 @@ static struct option long_opts[] = { {"flags", 0, NULL, OPT_FLAGS}, {"digest", 0, NULL, OPT_DIGEST}, {"help", 0, NULL, OPT_HELP}, - {"roothash", 0, NULL, OPT_ROOTHASH}, {NULL, 0, NULL, 0}, }; @@ -367,7 +364,6 @@ static int do_gbb(int argc, char *argv[]) int sel_hwid = 0; int sel_digest = 0; int sel_flags = 0; - int sel_roothash = 0; uint8_t *inbuf = NULL; off_t filesize; uint8_t *outbuf = NULL; @@ -417,9 +413,6 @@ static int do_gbb(int argc, char *argv[]) case OPT_DIGEST: sel_digest = 1; break; - case OPT_ROOTHASH: - sel_roothash = 1; - break; case OPT_HELP: print_help(argc, argv); return !!errorcnt; @@ -498,9 +491,6 @@ static int do_gbb(int argc, char *argv[]) if (sel_digest) print_hwid_digest(gbb, "digest: ", "\n"); - if (sel_roothash) - verify_ryu_root_header(inbuf, filesize, gbb); - if (sel_flags) printf("flags: 0x%08x\n", gbb->flags); if (opt_rootkey) @@ -606,9 +596,6 @@ static int do_gbb(int argc, char *argv[]) read_from_file("root_key", opt_rootkey, gbb_base + gbb->rootkey_offset, gbb->rootkey_size); - - if (fill_ryu_root_header(outbuf, filesize, gbb)) - errorcnt++; } if (opt_bmpfv) read_from_file("bmp_fv", opt_bmpfv, |