| OLD | NEW |
| 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. |
| 4 * |
| 5 * Verified boot key utility |
| 6 */ |
| 7 |
| 1 #include <getopt.h> | 8 #include <getopt.h> |
| 2 #include <inttypes.h> /* For PRIu64 */ | 9 #include <inttypes.h> /* For PRIu64 */ |
| 3 #include <stdio.h> | 10 #include <stdio.h> |
| 4 #include <stdlib.h> | 11 #include <stdlib.h> |
| 5 | 12 |
| 6 #include "cryptolib.h" | 13 #include "cryptolib.h" |
| 7 #include "host_common.h" | 14 #include "host_common.h" |
| 8 #include "vboot_common.h" | 15 #include "vboot_common.h" |
| 9 | 16 |
| 10 | 17 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 switch(mode) { | 173 switch(mode) { |
| 167 case OPT_MODE_PACK: | 174 case OPT_MODE_PACK: |
| 168 return Pack(infile, outfile, algorithm, version); | 175 return Pack(infile, outfile, algorithm, version); |
| 169 case OPT_MODE_UNPACK: | 176 case OPT_MODE_UNPACK: |
| 170 return Unpack(infile, outfile); | 177 return Unpack(infile, outfile); |
| 171 default: | 178 default: |
| 172 printf("Must specify a mode.\n"); | 179 printf("Must specify a mode.\n"); |
| 173 return PrintHelp(); | 180 return PrintHelp(); |
| 174 } | 181 } |
| 175 } | 182 } |
| OLD | NEW |