From 371ee13760b9e70d1a931afc643de3f4057b4a28 Mon Sep 17 00:00:00 2001 From: Andreas Fenkart Date: Wed, 9 Dec 2015 13:13:24 +0100 Subject: 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 --- tools/env/fw_env.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tools/env/fw_env.h') diff --git a/tools/env/fw_env.h b/tools/env/fw_env.h index 1a02c46..57149e7 100644 --- a/tools/env/fw_env.h +++ b/tools/env/fw_env.h @@ -5,6 +5,9 @@ * SPDX-License-Identifier: GPL-2.0+ */ +#include +#include + /* Pull in the current config to define the default environment */ #include @@ -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[]); -- cgit v1.1