summaryrefslogtreecommitdiff
path: root/src/md5sum.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-09 18:16:21 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-09 18:16:21 +0000
commit4573c9e81c131a3c8e6504502252c5acb9a43314 (patch)
treef5580721d74b3253649390516509d14cb18d443b /src/md5sum.c
parent81b4c13eb585bfe851e25424e525f9020187af57 (diff)
downloadcoreutils-4573c9e81c131a3c8e6504502252c5acb9a43314.tar.xz
Finish renaming sha -> sha1.
Diffstat (limited to 'src/md5sum.c')
-rw-r--r--src/md5sum.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/md5sum.c b/src/md5sum.c
index dbb73a280..4bf353db5 100644
--- a/src/md5sum.c
+++ b/src/md5sum.c
@@ -62,7 +62,7 @@
#define DIGEST_TYPE_STRING(Alg) ((Alg) == ALG_MD5 ? "MD5" : "SHA1")
-#define DIGEST_STREAM(Alg) ((Alg) == ALG_MD5 ? md5_stream : sha_stream)
+#define DIGEST_STREAM(Alg) ((Alg) == ALG_MD5 ? md5_stream : sha1_stream)
#define DIGEST_BITS(Alg) ((Alg) == ALG_MD5 ? 128 : 160)
#define DIGEST_HEX_BYTES(Alg) (DIGEST_BITS (Alg) / 4)
@@ -319,7 +319,7 @@ hex_digits (unsigned char const *s)
}
/* An interface to the function, DIGEST_STREAM,
- (either md5_stream or sha_stream).
+ (either md5_stream or sha1_stream).
Operate on FILENAME (it may be "-") and put the result in *BIN_RESULT.
Return true if successful. */
@@ -618,8 +618,8 @@ main (int argc, char **argv)
if (file_type_specified & do_check)
{
- error (0, 0, _("the --binary and --text options are meaningless when \
-verifying checksums"));
+ error (0, 0, _("the --binary and --text options are meaningless when "
+ "verifying checksums"));
usage (EXIT_FAILURE);
}
@@ -661,7 +661,7 @@ verifying checksums"));
if (algorithm == ALG_MD5)
md5_buffer (string[i], strlen (string[i]), bin_buffer);
else
- sha_buffer (string[i], strlen (string[i]), bin_buffer);
+ sha1_buffer (string[i], strlen (string[i]), bin_buffer);
for (cnt = 0; cnt < (digest_hex_bytes / 2); ++cnt)
printf ("%02x", bin_buffer[cnt]);