summaryrefslogtreecommitdiff
path: root/src/md5sum.c
AgeCommit message (Collapse)Author
2000-10-22Factor out the differences between MD5 and SHA1,Jim Meyering
and parameterize so this code may be used by both md5sum and the new program, shasum. Loosely based on a patch from Scott Miller.
2000-08-23Include <config.h> unconditionally, to be consistentJim Meyering
with all the other programs in this directory.
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering
1999-08-22(md5_check): Remove trailing `\n' in error format.Jim Meyering
1999-05-03(TOLOWER): Remove definition.Jim Meyering
1999-04-04Standardize --help and --version processing.Jim Meyering
1999-04-03Use AUTHORS in place of string in parse_long_options call.Jim Meyering
1999-04-03Insert AUTHORS definition.Jim Meyering
1999-04-03Use PROGRAM_NAME in place of string in parse_long_options call.Jim Meyering
1999-04-03define PROGRAM_NAMEJim Meyering
1999-03-04(main): Include author name argument.Jim Meyering
1999-02-16update copyright datesJim Meyering
1999-01-14Don't prototype usage as static.Jim Meyering
1999-01-03(usage): Remove third program_name argument -- thereJim Meyering
were only two `%s' in the format string.
1999-01-01(OPENOPTS) [O_BINARY]: Use binary I/O when non-zero argument.Jim Meyering
(md5_file) [O_BINARY]: Switch redirected stdin to binary mode. (main) [O_BINARY]: Use binary reads by default on those systems which care about the difference.
1998-10-04(split_3): Rename local variable, to `escaped_filename'.Jim Meyering
(main): Output the leading backslash not just when there's a newline in the file name, but also when there's a backslash.
1998-09-19update bug-reporting addressJim Meyering
1998-07-26(split_3): Add cast to placate irix4's cc. From Kaveh Ghazi.Jim Meyering
1998-06-29revert back to using lower case _unlocked wrapper namesJim Meyering
1998-06-29Change all uses of unlocked-wrapped functions to their upper case wrapper names.Jim Meyering
1998-04-26(md5_check): Declare local, `md5num' as _unsigned_ char*.Jim Meyering
(hex_digits): Declare parameter `s' as _unsigned_ char*. (split_3): Declare parameter `u' as _unsigned_ char**.
1998-04-12Use STREQ rather than strcmpJim Meyering
1997-10-25Remove old-style xmalloc and xrealloc decls.Jim Meyering
1997-10-07update bug-reporting addressJim Meyering
1997-06-29Move the OPENOPTS def from end to beginning of else clause so it's closerJim Meyering
to the one in the then clause.
1997-02-09update copyrights for 1997Jim Meyering
1997-02-01bracket bug address with <> and append a periodJim Meyering
1997-02-01Compare getopt_long return value against -1, not EOF. Use NULL, not '(int ↵Jim Meyering
*) 0' as last parameter in getopt_long call.
1996-12-23revert last changeJim Meyering
1996-12-23remove support for --string optionJim Meyering
1996-11-23(usage): Alphabetize options like sort -f would.Jim Meyering
1996-11-03change bug-reporting addressJim Meyering
1996-11-02change bug-reporting addressJim Meyering
1996-10-04(main): Remove dead code that used to print --version output.Jim Meyering
1996-10-04(main): update --version output againJim Meyering
1996-10-04(main): update --version output to conform to coding standardJim Meyering
1996-09-27(usage): Remove references in --help output toJim Meyering
the now-deprecated --string option. Support for it will be removed soon.
1996-09-02(usage): Tell where to report bugs.Jim Meyering
1996-07-26(md5_check): Remove parameter, BINARY.Jim Meyering
Rename local TYPE_FLAG to BINARY, so md5_file uses the binary mode from the input stream rather than the one from the command line. (main): Fail with a diagnostic if --binary or --text is specified when verifying checksums. Reported by Eli Zaretskii <eliz@is.elta.co.il>.
1996-07-04(split_3): Add missing semicolon. From Jim Blandy.Jim Meyering
1996-07-04(md5_file): Replace obsolete comment with a descriptionJim Meyering
of the function. (md5_check): Don't use "s"-adding trick to form the plural of `checksum.' That doesn't work well with translation. Suggestions from Ulrich Drepper.
1996-07-04(MIN_DIGEST_LINE_LENGTH): New macro.Jim Meyering
[NEWLINE_REPLACEMENT_STRING*]: Remove macros. (main): Output a leading backslash for a line describing a file whose name contains a newline. Then translate each NEWLINE byte in the file name to the string, "\\n", and each backslash to "\\\\". File names that don't contain NEWLINE aren't translated. (split_3): Rewrite to handle file names with embedded newlines. Miles Bader and Jim Blandy suggested this new encoding scheme.
1996-07-04(split_3): Correct test for 35-byte line to accomodateJim Meyering
fact that leading blanks may be stripped.
1996-07-02[NEWLINE_REPLACEMENT_STRING]: Define.Jim Meyering
(split_3): Translate NL bytes not to NUL, but to NEWLINE_REPLACEMENT_STRING. Suggested by Ulrich Drepper. (main): Translate back to NL-containing filename.
1996-07-01(main): Remove now-unnecessary diagnostic about filename containing NEWLINE.Jim Meyering
1996-07-01(split_3): Take an additional parameter, S_LEN.Jim Meyering
Adapt caller. Map translated NEWLINE-containing filename back into the original NEWLINE-containing name. (md5_check): Translate NEWLINE bytes to NUL bytes in filename.
1996-05-15(md5_t_stats): Restructure pluralization of error message so it's easierJim Meyering
to translate.
1996-04-24update Copyright years for 1996Jim Meyering
1996-04-22(md5_check): Remove spurious `\n' at end of error format string.Jim Meyering
1996-03-24Exit with status EXIT_SUCCESS or EXIT_FAILURE, rather than 0 or 1.Jim Meyering
This doesn't change `error (1' calls.