From bd3b071e1bdd0e872383d41c9a7b251499326293 Mon Sep 17 00:00:00 2001 From: Brian Cox Date: Thu, 24 Aug 2017 00:57:11 -0700 Subject: [PATCH] ifdef out some unused methods in our HAVAL impl. --- src/core/haval.cpp | 2 ++ src/core/haval.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/haval.cpp b/src/core/haval.cpp index 6063e00..a17fbb1 100644 --- a/src/core/haval.cpp +++ b/src/core/haval.cpp @@ -275,6 +275,7 @@ static uint8 padding[128] = { /* constants for padding */ } \ } +#if 0 //unused in OST /* hash a string */ void haval_string (char *string, uint8 fingerprint[FPTLEN >> 3]) @@ -330,6 +331,7 @@ void haval_stdin () putchar(fingerprint[i]); } } +#endif /* initialization */ void haval_start (haval_state *state) diff --git a/src/core/haval.h b/src/core/haval.h index d9044e6..975614d 100644 --- a/src/core/haval.h +++ b/src/core/haval.h @@ -117,10 +117,12 @@ typedef struct { #define P_(s) s //Old prototyping stuff... I will ignore it for now. - +#if 0 //unused in OST void haval_string P_((char *, uint8 *)); /* hash a string */ int haval_file P_((char *, uint8 *)); /* hash a file */ void haval_stdin P_((void)); /* filter -- hash input from stdin */ +#endif + void haval_start P_((haval_state *)); /* initialization */ void haval_hash P_((haval_state* state, uint8* str, int str_len)); void haval_end P_((haval_state *, uint8 *)); /* finalization */