From dc2f39cfed932c5c1021d29d68dbe6dc7cb59c8a Mon Sep 17 00:00:00 2001 From: venaas Date: Mon, 8 Jan 2007 15:27:45 +0000 Subject: handling mschapv2 and bug fixing git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@32 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radsecproxy.c b/radsecproxy.c index 7b20afb..c5806f8 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -918,7 +918,7 @@ struct server *radsrv(struct request *rq, char *buf, struct client *from) { return NULL; } - if (!pwdcrypt(pwd, &tunnelpwdattr[RAD_Attr_Value], attrvallen, from->peer.secret, strlen(from->peer.secret), auth)) { + if (!pwddecrypt(pwd, &tunnelpwdattr[RAD_Attr_Value], attrvallen, from->peer.secret, strlen(from->peer.secret), auth)) { printf("radsrv: cannot decrypt password\n"); return NULL; } @@ -926,7 +926,7 @@ struct server *radsrv(struct request *rq, char *buf, struct client *from) { for (i = 0; i < attrvallen; i++) printf("%02x ", pwd[i]); printf("\n"); - if (!pwdcrypt(&tunnelpwdattr[RAD_Attr_Value], pwd, attrvallen, to->peer.secret, strlen(to->peer.secret), newauth)) { + if (!pwdencrypt(&tunnelpwdattr[RAD_Attr_Value], pwd, attrvallen, to->peer.secret, strlen(to->peer.secret), newauth)) { printf("radsrv: cannot encrypt password\n"); return NULL; } -- cgit v1.1