summaryrefslogtreecommitdiff
path: root/src/common/md5calc.h
diff options
context:
space:
mode:
authorhemagx <ibrahem.h.basyone@gmail.com>2017-01-10 01:41:12 +0200
committerhemagx <ibrahem.h.basyone@gmail.com>2017-01-10 01:41:12 +0200
commit89e976aec097a2422f6faa08d4c8b0780df13acd (patch)
tree9db12a0b8dfd1877eeb17c1a035691ccc3a28630 /src/common/md5calc.h
parentdbc54eaa7e6091110e6437066b49a7cf8faea2b8 (diff)
downloadhercules-89e976aec097a2422f6faa08d4c8b0780df13acd.tar.gz
hercules-89e976aec097a2422f6faa08d4c8b0780df13acd.tar.bz2
hercules-89e976aec097a2422f6faa08d4c8b0780df13acd.tar.xz
hercules-89e976aec097a2422f6faa08d4c8b0780df13acd.zip
Update md5 calculation to be able to hash a binary buffer instead of only strings
Signed-off-by: hemagx <ibrahem.h.basyone@gmail.com>
Diffstat (limited to 'src/common/md5calc.h')
-rw-r--r--src/common/md5calc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/md5calc.h b/src/common/md5calc.h
index b4d4995f9..f55ebe312 100644
--- a/src/common/md5calc.h
+++ b/src/common/md5calc.h
@@ -46,7 +46,7 @@ struct md5_interface {
* @param[in] string The source string.
* @param[out] output Output buffer (at least 16 bytes available).
*/
- void (*binary) (const char *string, unsigned char *output);
+ void (*binary) (const uint8 *buf, const int buf_size, uint8 *output);
/**
* Generates a random salt.