Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper signature for rc_md5_calc() #129

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 */