commit fa2f0e09c301f75a25e75a144c308d9adbebfa6a
parent edbcc223ea9ef9c3f039352f787af0644d816ee7
Author: Michael Forney <mforney@mforney.org>
Date: Sun, 22 Dec 2019 11:53:35 -0800
*sum: Ignore -b and -t flags
Diffstat:
8 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/md5sum.c b/md5sum.c
@@ -28,6 +28,10 @@ main(int argc, char *argv[])
uint8_t md[MD5_DIGEST_LENGTH];
ARGBEGIN {
+ case 'b':
+ case 't':
+ /* ignore */
+ break;
case 'c':
cryptfunc = cryptcheck;
break;
diff --git a/sha1sum.c b/sha1sum.c
@@ -27,6 +27,10 @@ main(int argc, char *argv[])
uint8_t md[SHA1_DIGEST_LENGTH];
ARGBEGIN {
+ case 'b':
+ case 't':
+ /* ignore */
+ break;
case 'c':
cryptfunc = cryptcheck;
break;
diff --git a/sha224sum.c b/sha224sum.c
@@ -27,6 +27,10 @@ main(int argc, char *argv[])
uint8_t md[SHA224_DIGEST_LENGTH];
ARGBEGIN {
+ case 'b':
+ case 't':
+ /* ignore */
+ break;
case 'c':
cryptfunc = cryptcheck;
break;
diff --git a/sha256sum.c b/sha256sum.c
@@ -27,6 +27,10 @@ main(int argc, char *argv[])
uint8_t md[SHA256_DIGEST_LENGTH];
ARGBEGIN {
+ case 'b':
+ case 't':
+ /* ignore */
+ break;
case 'c':
cryptfunc = cryptcheck;
break;
diff --git a/sha384sum.c b/sha384sum.c
@@ -27,6 +27,10 @@ main(int argc, char *argv[])
uint8_t md[SHA384_DIGEST_LENGTH];
ARGBEGIN {
+ case 'b':
+ case 't':
+ /* ignore */
+ break;
case 'c':
cryptfunc = cryptcheck;
break;
diff --git a/sha512-224sum.c b/sha512-224sum.c
@@ -27,6 +27,10 @@ main(int argc, char *argv[])
uint8_t md[SHA512_224_DIGEST_LENGTH];
ARGBEGIN {
+ case 'b':
+ case 't':
+ /* ignore */
+ break;
case 'c':
cryptfunc = cryptcheck;
break;
diff --git a/sha512-256sum.c b/sha512-256sum.c
@@ -27,6 +27,10 @@ main(int argc, char *argv[])
uint8_t md[SHA512_256_DIGEST_LENGTH];
ARGBEGIN {
+ case 'b':
+ case 't':
+ /* ignore */
+ break;
case 'c':
cryptfunc = cryptcheck;
break;
diff --git a/sha512sum.c b/sha512sum.c
@@ -27,6 +27,10 @@ main(int argc, char *argv[])
uint8_t md[SHA512_DIGEST_LENGTH];
ARGBEGIN {
+ case 'b':
+ case 't':
+ /* ignore */
+ break;
case 'c':
cryptfunc = cryptcheck;
break;