1
0
mirror of git://git.suckless.org/sbase synced 2024-12-22 07:01:15 +00:00

*sum: Ignore -b and -t flags

This commit is contained in:
Michael Forney 2019-12-22 11:53:35 -08:00
parent edbcc223ea
commit fa2f0e09c3
8 changed files with 32 additions and 0 deletions

View File

@ -28,6 +28,10 @@ main(int argc, char *argv[])
uint8_t md[MD5_DIGEST_LENGTH]; uint8_t md[MD5_DIGEST_LENGTH];
ARGBEGIN { ARGBEGIN {
case 'b':
case 't':
/* ignore */
break;
case 'c': case 'c':
cryptfunc = cryptcheck; cryptfunc = cryptcheck;
break; break;

View File

@ -27,6 +27,10 @@ main(int argc, char *argv[])
uint8_t md[SHA1_DIGEST_LENGTH]; uint8_t md[SHA1_DIGEST_LENGTH];
ARGBEGIN { ARGBEGIN {
case 'b':
case 't':
/* ignore */
break;
case 'c': case 'c':
cryptfunc = cryptcheck; cryptfunc = cryptcheck;
break; break;

View File

@ -27,6 +27,10 @@ main(int argc, char *argv[])
uint8_t md[SHA224_DIGEST_LENGTH]; uint8_t md[SHA224_DIGEST_LENGTH];
ARGBEGIN { ARGBEGIN {
case 'b':
case 't':
/* ignore */
break;
case 'c': case 'c':
cryptfunc = cryptcheck; cryptfunc = cryptcheck;
break; break;

View File

@ -27,6 +27,10 @@ main(int argc, char *argv[])
uint8_t md[SHA256_DIGEST_LENGTH]; uint8_t md[SHA256_DIGEST_LENGTH];
ARGBEGIN { ARGBEGIN {
case 'b':
case 't':
/* ignore */
break;
case 'c': case 'c':
cryptfunc = cryptcheck; cryptfunc = cryptcheck;
break; break;

View File

@ -27,6 +27,10 @@ main(int argc, char *argv[])
uint8_t md[SHA384_DIGEST_LENGTH]; uint8_t md[SHA384_DIGEST_LENGTH];
ARGBEGIN { ARGBEGIN {
case 'b':
case 't':
/* ignore */
break;
case 'c': case 'c':
cryptfunc = cryptcheck; cryptfunc = cryptcheck;
break; break;

View File

@ -27,6 +27,10 @@ main(int argc, char *argv[])
uint8_t md[SHA512_224_DIGEST_LENGTH]; uint8_t md[SHA512_224_DIGEST_LENGTH];
ARGBEGIN { ARGBEGIN {
case 'b':
case 't':
/* ignore */
break;
case 'c': case 'c':
cryptfunc = cryptcheck; cryptfunc = cryptcheck;
break; break;

View File

@ -27,6 +27,10 @@ main(int argc, char *argv[])
uint8_t md[SHA512_256_DIGEST_LENGTH]; uint8_t md[SHA512_256_DIGEST_LENGTH];
ARGBEGIN { ARGBEGIN {
case 'b':
case 't':
/* ignore */
break;
case 'c': case 'c':
cryptfunc = cryptcheck; cryptfunc = cryptcheck;
break; break;

View File

@ -27,6 +27,10 @@ main(int argc, char *argv[])
uint8_t md[SHA512_DIGEST_LENGTH]; uint8_t md[SHA512_DIGEST_LENGTH];
ARGBEGIN { ARGBEGIN {
case 'b':
case 't':
/* ignore */
break;
case 'c': case 'c':
cryptfunc = cryptcheck; cryptfunc = cryptcheck;
break; break;