summaryrefslogtreecommitdiff
path: root/accel-pptpd/auth/auth_chap_md5.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pptpd/auth/auth_chap_md5.c')
-rw-r--r--accel-pptpd/auth/auth_chap_md5.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/accel-pptpd/auth/auth_chap_md5.c b/accel-pptpd/auth/auth_chap_md5.c
index ba122958..e0fe2d4e 100644
--- a/accel-pptpd/auth/auth_chap_md5.c
+++ b/accel-pptpd/auth/auth_chap_md5.c
@@ -31,9 +31,9 @@
#define HDR_LEN (sizeof(struct chap_hdr_t)-2)
-static int conf_timeout = 3;
+static int conf_timeout = 5;
static int conf_interval = 0;
-static int conf_max_failure = 2;
+static int conf_max_failure = 3;
static int urandom_fd;
@@ -122,9 +122,9 @@ static int chap_start(struct ppp_t *ppp, struct auth_data_t *auth)
d->h.proto=PPP_CHAP;
d->h.recv=chap_recv;
d->timeout.expire = chap_timeout;
- d->timeout.expire_tv.tv_sec = conf_timeout;
+ d->timeout.period = conf_timeout * 1000;
d->interval.expire = chap_restart;
- d->interval.expire_tv.tv_sec = conf_interval;
+ d->interval.period = conf_interval * 1000;
ppp_register_chan_handler(ppp,&d->h);