handling mschapv2 and bug fixing
authorvenaas <venaas>
Mon, 8 Jan 2007 15:27:45 +0000 (15:27 +0000)
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>
Mon, 8 Jan 2007 15:27:45 +0000 (15:27 +0000)
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@32 e88ac4ed-0b26-0410-9574-a7f39faa03bf

radsecproxy.c

index 7b20afb..c5806f8 100644 (file)
@@ -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;
        }