aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-14 03:22:30 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-14 03:22:53 +0100
commitb44924175a4241243d05cad68b8754a3dbeaa917 (patch)
tree73e0ec3af5edb7a677f5b0642aac74032ffb39f2 /src/common.h
parentupdate todo (diff)
downloadsha3sum-b44924175a4241243d05cad68b8754a3dbeaa917.tar.gz
sha3sum-b44924175a4241243d05cad68b8754a3dbeaa917.tar.bz2
sha3sum-b44924175a4241243d05cad68b8754a3dbeaa917.tar.xz
Update todo + fix potential dubble free on error + add support for --hex-input
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h
index c90a9e4..0882c6a 100644
--- a/src/common.h
+++ b/src/common.h
@@ -69,13 +69,14 @@
* @param suffix The message suffix
* @param representation Either of `REPRESENTATION_BINARY`, `REPRESENTATION_UPPER_CASE`
* and `REPRESENTATION_LOWER_CASE`
+ * @param hex Whether to use hexadecimal input rather than binary
* @param verbose Whether to print the hashing parameters
* @param execname `argv[0]` from `main`
* @return Zero on succes, an appropriate exit value on error
*/
int print_checksum(const char* restrict filename, libkeccak_generalised_spec_t* restrict gspec,
- long squeezes, const char* restrict suffix, int representation, int verbose,
- const char* restrict execname);
+ long squeezes, const char* restrict suffix, int representation, int hex,
+ int verbose, const char* restrict execname);
/**