From 5f042511ccd221f2bac6bab2cc242b7a9018b2be Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Fri, 17 Oct 2025 04:30:38 +0200 Subject: Switched to SHA1 --- FICS/copyfile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'FICS') 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 #include -#include +#include #include #include #include @@ -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]); -- cgit v1.2.3