[trivial PATCH 13/22] [otp_pw_valid.c] eliminate build warnings
Wang Tinggong
wangtinggong at gmail.com
Mon Feb 1 18:29:14 CET 2010
Signed-off-by: Wang Tinggong <wangtinggong at gmail.com>
---
src/modules/rlm_otp/otp_pw_valid.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/modules/rlm_otp/otp_pw_valid.c b/src/modules/rlm_otp/otp_pw_valid.c
index d05516f..e5ff630 100644
--- a/src/modules/rlm_otp/otp_pw_valid.c
+++ b/src/modules/rlm_otp/otp_pw_valid.c
@@ -71,7 +71,7 @@ static pthread_mutex_t otp_fd_head_mutex = PTHREAD_MUTEX_INITIALIZER;
* NB: The returned passcode will contain the PIN! DO NOT LOG!
*/
int
-otp_pw_valid(REQUEST *request, int pwe, const char *challenge,
+otp_pw_valid(REQUEST *request, int pwe, const unsigned char *challenge,
const otp_option_t *opt, char passcode[OTP_MAX_PASSCODE_LEN + 1])
{
otp_request_t otp_request;
@@ -88,7 +88,7 @@ otp_pw_valid(REQUEST *request, int pwe, const char *challenge,
otp_request.version = 2;
(void) strcpy(otp_request.username, username);
- (void) strcpy(otp_request.challenge, challenge);
+ (void) strcpy(otp_request.challenge, (const char*)challenge);
otp_request.pwe.pwe = pwe;
/* otp_pwe_present() (done by caller) guarantees that both of these exist */
--
1.6.0.6
More information about the Freeradius-Devel
mailing list