mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-22 06:32:23 +00:00
hash: Use lower case for hash algorithm names
Rather than use strcasecmp() in the hash algorithm search, require the caller to do this first. Most of U-Boot can use lower case anyway, and the hash command can convert to lower case before calling hash_command(). This saves needing strcasecmp() for boards that use hashing but not the hash command. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
bd091b67d0
commit
218da0f35f
3 changed files with 11 additions and 6 deletions
|
@ -61,7 +61,7 @@ enum {
|
|||
*
|
||||
* This common function is used to implement specific hash commands.
|
||||
*
|
||||
* @algo_name: Hash algorithm being used
|
||||
* @algo_name: Hash algorithm being used (lower case!)
|
||||
* @flags: Flags value (HASH_FLAG_...)
|
||||
* @cmdtp: Pointer to command table entry
|
||||
* @flag: Some flags normally 0 (see CMD_FLAG_.. above)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue