diff --git a/include/freeradius-client.h b/include/freeradius-client.h index 3d1baa6..bcaafe9 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 640aad2..c302113 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 dcde619..1df7d3f 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 */