From 167ea748f8b20a5940108ef5b23132310213e77e Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 20 Aug 2015 20:44:17 +0200 Subject: cwfs: adjust for new libauthsrv changes --- sys/src/cmd/cwfs/auth.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sys/src') diff --git a/sys/src/cmd/cwfs/auth.c b/sys/src/cmd/cwfs/auth.c index e3d51be7e..5f088a17e 100644 --- a/sys/src/cmd/cwfs/auth.c +++ b/sys/src/cmd/cwfs/auth.c @@ -55,7 +55,7 @@ int conslock(void) { char *ln; - char nkey1[DESKEYLEN]; + Authkey nkey1; static char zeroes[DESKEYLEN]; if(memcmp(nvr.machkey, zeroes, DESKEYLEN) == 0) { @@ -72,9 +72,8 @@ conslock(void) ln[Blinelen(&bin)-1] = '\0'; /* could turn on echo here */ - memset(nkey1, 0, DESKEYLEN); - passtokey(nkey1, ln); - if(memcmp(nkey1, nvr.machkey, DESKEYLEN) == 0) { + passtokey(&nkey1, ln); + if(memcmp(nkey1.des, nvr.machkey, DESKEYLEN) == 0) { prdate(); break; } -- cgit v1.2.3