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 9520f01
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/freeradius-client.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

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 9520f01

Please sign in to comment.