From 9520f01c811f450a0227379ed804177b5803253d Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sat, 10 Aug 2024 18:46:21 +0200 Subject: [PATCH] Proper signature for rc_md5_calc() --- include/freeradius-client.h | 2 +- lib/rc-md5.c | 1 + lib/rc-md5.h | 3 --- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/freeradius-client.h b/include/freeradius-client.h index 3d1baa68..a050ecca 100644 --- a/include/freeradius-client.h +++ b/include/freeradius-client.h @@ -541,7 +541,7 @@ int rc_import_env(struct env *, char const **); /* md5.c */ -void rc_md5_calc(unsigned char *, unsigned char const *, unsigned int); +void rc_md5_calc(unsigned char *, unsigned char const *, size_t); __END_DECLS diff --git a/lib/rc-md5.c b/lib/rc-md5.c index 640aad23..c3021130 100644 --- a/lib/rc-md5.c +++ b/lib/rc-md5.c @@ -9,6 +9,7 @@ * * If we don't do this, it might pick up the systems broken MD5. */ +#include #include "rc-md5.h" /** Hash the provided data using MD5 diff --git a/lib/rc-md5.h b/lib/rc-md5.h index dcde6196..1df7d3f0 100644 --- a/lib/rc-md5.h +++ b/lib/rc-md5.h @@ -22,7 +22,4 @@ #endif /* HAVE_NETTLE */ -void rc_md5_calc(unsigned char *output, unsigned char const *input, - size_t inputlen); - #endif /* _RC_MD5_H */