Skip to content

Commit

Permalink
Proper signature for rc_md5_calc()
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Aug 10, 2024
1 parent 79d92af commit edb005f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions include/freeradius-client.h
Original file line number Diff line number Diff line change
Expand Up @@ -503,22 +503,20 @@ 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 *);
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 */

Expand All @@ -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

Expand Down
1 change: 1 addition & 0 deletions lib/rc-md5.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*
* If we don't do this, it might pick up the systems broken MD5.
*/
#include <freeradius-client.h>
#include "rc-md5.h"

/** Hash the provided data using MD5
Expand Down
3 changes: 0 additions & 3 deletions lib/rc-md5.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit edb005f

Please sign in to comment.