diff options
author | Andreas Fenkart <andreas.fenkart@digitalstrom.com> | 2015-12-09 15:13:24 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-02-08 18:10:31 +0300 |
commit | 371ee13760b9e70d1a931afc643de3f4057b4a28 (patch) | |
tree | 3356168d73044c1c3ed383a1bcdb7b566ef98514 /tools/env/fw_env.h | |
parent | 07ce9440213f17893ff2438491d8395c26eb0ccd (diff) | |
download | u-boot-371ee13760b9e70d1a931afc643de3f4057b4a28.tar.xz |
tools: env: parse aes key / suppress flag into argument struct
disabled original parsing, but not yet removed since the
argument indexing needs to be fixed
Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
Diffstat (limited to 'tools/env/fw_env.h')
-rw-r--r-- | tools/env/fw_env.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/env/fw_env.h b/tools/env/fw_env.h index 1a02c466ee..57149e733b 100644 --- a/tools/env/fw_env.h +++ b/tools/env/fw_env.h @@ -5,6 +5,9 @@ * SPDX-License-Identifier: GPL-2.0+ */ +#include <aes.h> +#include <stdint.h> + /* Pull in the current config to define the default environment */ #include <linux/kconfig.h> @@ -54,7 +57,17 @@ "bootm" #endif +struct common_args { +#ifdef CONFIG_FILE + char *config_file; +#endif + uint8_t aes_key[AES_KEY_LENGTH]; + int aes_flag; /* Is AES encryption used? */ +}; +extern struct common_args common_args; + struct printenv_args { + int name_suppress; }; extern struct printenv_args printenv_args; @@ -63,6 +76,8 @@ struct setenv_args { }; extern struct setenv_args setenv_args; +int parse_aes_key(char *key, uint8_t *bin_key); + extern int fw_printenv(int argc, char *argv[]); extern char *fw_getenv (char *name); extern int fw_setenv (int argc, char *argv[]); |