checksum tools: implement -c

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
This commit is contained in:
Hiltjo Posthuma
2014-03-23 12:18:38 +01:00
committed by sin
parent 18b6e40161
commit 04f32f4d9a
6 changed files with 105 additions and 4 deletions

View File

@@ -24,13 +24,16 @@ int
main(int argc, char *argv[])
{
uint8_t md[SHA1_DIGEST_LENGTH];
char *checkfile = NULL;
ARGBEGIN {
case 'c':
eprintf("not implemented\n");
checkfile = EARGF(usage());
default:
usage();
} ARGEND;
if(checkfile)
return cryptcheck(checkfile, argc, argv, &sha1_ops, md, sizeof(md));
return cryptmain(argc, argv, &sha1_ops, md, sizeof(md));
}