projects
/
freeradius.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
import from HEAD:
[freeradius.git]
/
src
/
modules
/
rlm_otp
/
otp_pw_valid.c
diff --git
a/src/modules/rlm_otp/otp_pw_valid.c
b/src/modules/rlm_otp/otp_pw_valid.c
index
d443000
..
cc90a1c
100644
(file)
--- a/
src/modules/rlm_otp/otp_pw_valid.c
+++ b/
src/modules/rlm_otp/otp_pw_valid.c
@@
-21,12
+21,11
@@
* Copyright 2006 TRI-D Systems, Inc.
*/
* Copyright 2006 TRI-D Systems, Inc.
*/
-#include "ident.h"
-RCSID("$Id$")
+static const char rcsid[] = "$Id$";
-#include
<freeradius-devel/autoconf.h>
-#include
<freeradius-devel/radiusd.h>
-#include
<freeradius-devel/modules.h>
+#include
"autoconf.h"
+#include
"radiusd.h"
+#include
"modules.h"
#include "extern.h"
#include "otp.h"
#include "extern.h"
#include "otp.h"
@@
-80,7
+79,7
@@
otp_pw_valid(REQUEST *request, int pwe, const char *challenge,
otp_request_t otp_request;
otp_reply_t otp_reply;
VALUE_PAIR *cvp, *rvp;
otp_request_t otp_request;
otp_reply_t otp_reply;
VALUE_PAIR *cvp, *rvp;
- char *username = request->username->
vp_
strvalue;
+ char *username = request->username->strvalue;
int rc;
if (request->username->length > OTP_MAX_USERNAME_LEN) {
int rc;
if (request->username->length > OTP_MAX_USERNAME_LEN) {
@@
-108,7
+107,7
@@
otp_pw_valid(REQUEST *request, int pwe, const char *challenge,
(void) radlog(L_AUTH, "rlm_otp: passcode for [%s] too long", username);
return RLM_MODULE_REJECT;
}
(void) radlog(L_AUTH, "rlm_otp: passcode for [%s] too long", username);
return RLM_MODULE_REJECT;
}
- (void) strcpy(otp_request.pwe.passcode, rvp->
vp_
strvalue);
+ (void) strcpy(otp_request.pwe.passcode, rvp->strvalue);
break;
case PWE_CHAP:
break;
case PWE_CHAP:
@@
-122,9
+121,9
@@
otp_pw_valid(REQUEST *request, int pwe, const char *challenge,
username);
return RLM_MODULE_INVALID;
}
username);
return RLM_MODULE_INVALID;
}
- (void) memcpy(otp_request.pwe.challenge, cvp->
vp_
strvalue, cvp->length);
+ (void) memcpy(otp_request.pwe.challenge, cvp->strvalue, cvp->length);
otp_request.pwe.clen = cvp->length;
otp_request.pwe.clen = cvp->length;
- (void) memcpy(otp_request.pwe.response, rvp->
vp_
strvalue, rvp->length);
+ (void) memcpy(otp_request.pwe.response, rvp->strvalue, rvp->length);
otp_request.pwe.rlen = rvp->length;
break;
otp_request.pwe.rlen = rvp->length;
break;
@@
-139,9
+138,9
@@
otp_pw_valid(REQUEST *request, int pwe, const char *challenge,
username);
return RLM_MODULE_INVALID;
}
username);
return RLM_MODULE_INVALID;
}
- (void) memcpy(otp_request.pwe.challenge, cvp->
vp_
strvalue, cvp->length);
+ (void) memcpy(otp_request.pwe.challenge, cvp->strvalue, cvp->length);
otp_request.pwe.clen = cvp->length;
otp_request.pwe.clen = cvp->length;
- (void) memcpy(otp_request.pwe.response, rvp->
vp_
strvalue, rvp->length);
+ (void) memcpy(otp_request.pwe.response, rvp->strvalue, rvp->length);
otp_request.pwe.rlen = rvp->length;
break;
otp_request.pwe.rlen = rvp->length;
break;
@@
-156,9
+155,9
@@
otp_pw_valid(REQUEST *request, int pwe, const char *challenge,
username);
return RLM_MODULE_INVALID;
}
username);
return RLM_MODULE_INVALID;
}
- (void) memcpy(otp_request.pwe.challenge, cvp->
vp_
strvalue, cvp->length);
+ (void) memcpy(otp_request.pwe.challenge, cvp->strvalue, cvp->length);
otp_request.pwe.clen = cvp->length;
otp_request.pwe.clen = cvp->length;
- (void) memcpy(otp_request.pwe.response, rvp->
vp_
strvalue, rvp->length);
+ (void) memcpy(otp_request.pwe.response, rvp->strvalue, rvp->length);
otp_request.pwe.rlen = rvp->length;
break;
} /* switch (otp_request.pwe.pwe) */
otp_request.pwe.rlen = rvp->length;
break;
} /* switch (otp_request.pwe.pwe) */