]> git.dujemihanovic.xyz Git - u-boot.git/commit
hash: Use lower case for hash algorithm names
authorSimon Glass <sjg@chromium.org>
Sun, 24 Feb 2013 17:33:32 +0000 (17:33 +0000)
committerSimon Glass <sjg@chromium.org>
Fri, 1 Mar 2013 03:49:13 +0000 (19:49 -0800)
commit218da0f35f4b5e5bf13d3dba6d975d4d5d65516f
tree0601a777e77d4c582882426e5aefcd3541032be5
parentbd091b67d0ef2959ed0ff2aa6575ddb0d21c1f71
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>
common/cmd_hash.c
common/hash.c
include/hash.h