diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2025-10-17 04:30:38 +0200 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2025-10-17 04:30:38 +0200 |
| commit | 5f042511ccd221f2bac6bab2cc242b7a9018b2be (patch) | |
| tree | 519c1627db3d01acfb99179688b6849c96b99daa | |
| parent | 8574eff6927d0e1a6bcee68a0039ef2186de3b6d (diff) | |
Switched to SHA1
| -rw-r--r-- | FICS/copyfile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/FICS/copyfile.c b/FICS/copyfile.c index f2f6a9c..ca4e625 100644 --- a/FICS/copyfile.c +++ b/FICS/copyfile.c @@ -6,7 +6,7 @@ #include <err.h> #include <fcntl.h> -#include <md5.h> +#include <sha1.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -67,14 +67,14 @@ fics_copyfile(const char *p1, const char *p2, const bool post_checks) warnx("%s: total written mismatch total read", __func__); return false; } else if (post_checks) { - char buf[2][MD5_DIGEST_STRING_LENGTH + 1]; + char buf[2][SHA1_DIGEST_LENGTH + 1]; char *str[2]; str[0] = &buf[0][0]; str[1] = &buf[1][0]; - if (MD5File(p1, str[0]) != NULL && - MD5File(p2, str[1]) != NULL) { + if (SHA1File(p1, str[0]) != NULL && + SHA1File(p2, str[1]) != NULL) { #if PRINT_CHECKSUMS puts(str[0]); puts(str[1]); |
