projects
/
BearSSL
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed a spurious warning on some compilers.
[BearSSL]
/
tools
/
keys.c
diff --git
a/tools/keys.c
b/tools/keys.c
index
f7394be
..
6e54676
100644
(file)
--- a/
tools/keys.c
+++ b/
tools/keys.c
@@
-217,6
+217,9
@@
get_hash_impl(int hash_id)
{
size_t u;
{
size_t u;
+ if (hash_id == 0) {
+ return &br_md5sha1_vtable;
+ }
for (u = 0; hash_functions[u].name; u ++) {
const br_hash_class *hc;
int id;
for (u = 0; hash_functions[u].name; u ++) {
const br_hash_class *hc;
int id;