#include "ident.h"
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"
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) {
(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:
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;
- (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;
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;
- (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;
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;
- (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) */