Skip to content

Commit edb005f

Browse files
Proper signature for rc_md5_calc()
1 parent 79d92af commit edb005f

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

include/freeradius-client.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -503,22 +503,20 @@ void rc_dict_free(rc_handle *);
503503

504504
/* ip_util.c */
505505

506-
507506
int rc_good_ipaddr(char const *);
508507
unsigned short rc_getport(int);
509508
int rc_own_hostname(char *, int);
510509
struct sockaddr;
511510
int rc_get_srcaddr(struct sockaddr *, const struct sockaddr *);
512511

513-
514512
/* log.c */
515513

516514
void rc_openlog(char const *);
517515
void rc_log(int, char const *, ...);
518516

519517
/* sendserver.c */
520518

521-
int rc_send_server(rc_handle const*, SEND_DATA *, char *, unsigned flags);
519+
int rc_send_server(rc_handle const*, SEND_DATA *, char *, unsigned);
522520

523521
/* util.c */
524522

@@ -541,7 +539,7 @@ int rc_import_env(struct env *, char const **);
541539

542540
/* md5.c */
543541

544-
void rc_md5_calc(unsigned char *, unsigned char const *, unsigned int);
542+
void rc_md5_calc(unsigned char *, unsigned char const *, size_t);
545543

546544
__END_DECLS
547545

lib/rc-md5.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*
1010
* If we don't do this, it might pick up the systems broken MD5.
1111
*/
12+
#include <freeradius-client.h>
1213
#include "rc-md5.h"
1314

1415
/** Hash the provided data using MD5

lib/rc-md5.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,4 @@
2222

2323
#endif /* HAVE_NETTLE */
2424

25-
void rc_md5_calc(unsigned char *output, unsigned char const *input,
26-
size_t inputlen);
27-
2825
#endif /* _RC_MD5_H */

0 commit comments

Comments
 (0)