bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Support generic BSD message digest formats in md5sum.c (sha1


From: Jim Meyering
Subject: Re: [PATCH] Support generic BSD message digest formats in md5sum.c (sha1sum now --check's BSD SHA1 format)
Date: Sun, 31 Aug 2003 15:57:31 +0200

Lawrence Teo <address@hidden> wrote:
> Here's a patch against 5.0.1 to allow md5sum.c to support generic BSD
> message digest formats. Version 5.0.1 already has support for BSD MD5
> format; this patch modifies the code so that `sha1sum --check' will
> also work with BSD-style SHA1 checksum files.
...
> 2003-08-22  Lawrence Teo  <address@hidden>
>
>          * src/md5sum.c (split_3): Accept the BSD format for generic
>          message digest modes.  Currently works with BSD's MD5 and SHA1
>          formats since these are the two algorithms presently used in
>          coreutils.  Updated comments to reflect this change.
>          (bsd_split_3): Updated comments.
>
>          * tests/md5sum/basic-1: New test to make sure that
>          `md5sum --check' doesn't accept the BSD SHA1 format (adapted
>          from `check-bsd' test in tests/sha1sum/basic-1).
>
>          * tests/sha1sum/basic-1: New tests for --check exit status
>          and allow BSD SHA1 format (adapted from tests in
>          tests/md5sum/basic-1).

Thank you for those patches.
I've applied them, with some minor changes.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]