diff options
Diffstat (limited to 'src/deh_main.c')
-rw-r--r-- | src/deh_main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/deh_main.c b/src/deh_main.c index 20498375..e61933fa 100644 --- a/src/deh_main.c +++ b/src/deh_main.c @@ -89,22 +89,22 @@ static deh_section_t *section_types[] = &deh_section_weapon, }; -void DEH_Checksum(md5_digest_t digest) +void DEH_Checksum(sha1_digest_t digest) { - md5_context_t md5_context; + sha1_context_t sha1_context; unsigned int i; - MD5_Init(&md5_context); + SHA1_Init(&sha1_context); for (i=0; i<arrlen(section_types); ++i) { - if (section_types[i]->md5_hash != NULL) + if (section_types[i]->sha1_hash != NULL) { - section_types[i]->md5_hash(&md5_context); + section_types[i]->sha1_hash(&sha1_context); } } - MD5_Final(digest, &md5_context); + SHA1_Final(digest, &sha1_context); } // Called on startup to call the Init functions |