From edb005f891e9a6f650849dc06a1ddd74a4d2e604 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 | 6 ++---- lib/rc-md5.c | 1 + lib/rc-md5.h | 3 --- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/include/freeradius-client.h b/include/freeradius-client.h index 3d1baa68..bcaafe90 100644 --- a/include/freeradius-client.h +++ b/include/freeradius-client.h @@ -503,14 +503,12 @@ void rc_dict_free(rc_handle *); /* ip_util.c */ - int rc_good_ipaddr(char const *); unsigned short rc_getport(int); int rc_own_hostname(char *, int); struct sockaddr; int rc_get_srcaddr(struct sockaddr *, const struct sockaddr *); - /* log.c */ void rc_openlog(char const *); @@ -518,7 +516,7 @@ void rc_log(int, char const *, ...); /* sendserver.c */ -int rc_send_server(rc_handle const*, SEND_DATA *, char *, unsigned flags); +int rc_send_server(rc_handle const*, SEND_DATA *, char *, unsigned); /* util.c */ @@ -541,7 +539,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 */