diff options
author | markm <markm@FreeBSD.org> | 2002-03-21 22:50:02 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-03-21 22:50:02 +0000 |
commit | da481742fe10db46be0a0f92255f012bcfa3a0a9 (patch) | |
tree | 5c9f598749274986230a9eaa1de3c9dd00eb09b3 /contrib/opie/libopie/passwd.c | |
parent | 3b73ce2319e249cf2795cf4b0d0c624134f01e77 (diff) | |
parent | 4cdfa7814cda254acabe1040a2b2d0c4f5bc4295 (diff) | |
download | FreeBSD-src-da481742fe10db46be0a0f92255f012bcfa3a0a9.zip FreeBSD-src-da481742fe10db46be0a0f92255f012bcfa3a0a9.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r92906,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/opie/libopie/passwd.c')
-rw-r--r-- | contrib/opie/libopie/passwd.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/contrib/opie/libopie/passwd.c b/contrib/opie/libopie/passwd.c index 6bac249..1c3b1ab6 100644 --- a/contrib/opie/libopie/passwd.c +++ b/contrib/opie/libopie/passwd.c @@ -1,8 +1,8 @@ /* passwd.c: The opiepasswd() library function. %%% copyright-cmetz-96 -This software is Copyright 1996-1998 by Craig Metz, All Rights Reserved. -The Inner Net License Version 2 applies to this software. +This software is Copyright 1996-2001 by Craig Metz, All Rights Reserved. +The Inner Net License Version 3 applies to this software. You should have received a copy of the license with this software. If you didn't get a copy, you may request one from <license@inner.net>. @@ -46,19 +46,19 @@ int opiepasswd FUNCTION((old, flags, principal, n, seed, ks), struct opie *old A opie.opie_seed = seed; if (ks) { - char key[8]; + struct opie_otpkey key; if (flags & OPIEPASSWD_CONSOLE) { - if (opiekeycrunch(MDX, key, seed, ks)) + if (opiekeycrunch(MDX, &key, seed, ks)) return -1; for (i = n; i; i--) - opiehash(key, MDX); - if (!(opie.opie_val = opiebtoa8(opie.opie_buf, key))) + opiehash(&key, MDX); + if (!(opie.opie_val = opiebtoa8(opie.opie_buf, &key))) return -1; } else { - if ((opieetob(key, ks) != 1) && !opieatob8(key, ks)) + if ((opieetob(&key, ks) != 1) && !opieatob8(&key, ks)) return 1; - if (!(opie.opie_val = opiebtoa8(opie.opie_buf, key))) + if (!(opie.opie_val = opiebtoa8(opie.opie_buf, &key))) return 1; } } |