summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cwfs
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-08-20 20:44:17 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-08-20 20:44:17 +0200
commit167ea748f8b20a5940108ef5b23132310213e77e (patch)
treedddd36495eae96800a6c2acbac37a5e4585b226a /sys/src/cmd/cwfs
parent78c45541eb66a661f4e45c2f86bb5ac37de2408b (diff)
cwfs: adjust for new libauthsrv changes
Diffstat (limited to 'sys/src/cmd/cwfs')
-rw-r--r--sys/src/cmd/cwfs/auth.c7
1 files changed, 3 insertions, 4 deletions
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;
}