Signed-off-by: Wang Tinggong <wangtinggong@gmail.com> --- src/modules/rlm_otp/extern.h | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/rlm_otp/extern.h b/src/modules/rlm_otp/extern.h index 5fad0cb..0f1d6a3 100644 --- a/src/modules/rlm_otp/extern.h +++ b/src/modules/rlm_otp/extern.h @@ -66,8 +66,8 @@ typedef struct otp_option_t { void otp_mppe(REQUEST *, otp_pwe_t, const otp_option_t *, const char *); /* otp_pw_valid.c */ -extern int otp_pw_valid(REQUEST *, int, const char *, const otp_option_t *, - char []); +extern int otp_pw_valid(REQUEST *, int, const unsigned char *, + const otp_option_t *, char []); /* otp_radstate.c */ #define OTP_MAX_RADSTATE_LEN 2 + (OTP_MAX_CHALLENGE_LEN * 2 + 8 + 8 + 32)*2 + 1 @@ -82,9 +82,9 @@ extern void otp_pwe_init(void); extern otp_pwe_t otp_pwe_present(const REQUEST *); /* otp_util.c */ -extern void otp_get_random(char *, size_t); +extern void otp_get_random(unsigned char *, size_t); extern void otp_async_challenge(char [OTP_MAX_CHALLENGE_LEN + 1], int); -extern int otp_a2x(const char *, unsigned char *); +extern int otp_a2x(const unsigned char *, unsigned char *); extern void otp_x2a(const unsigned char *, size_t, char *); extern void _otp_pthread_mutex_init(pthread_mutex_t *, const pthread_mutexattr_t *, const char *); -- 1.6.0.6