summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfgsch <fgsch@openbsd.org>2000-06-19 20:50:58 +0000
committerfgsch <fgsch@openbsd.org>2000-06-19 20:50:58 +0000
commit7c96b20faa636f3adccdd225834483c43504363c (patch)
treeee8fcb719af675848946db790eb8ed462c7192ef
parentadd openbsd tag (diff)
downloadwireguard-openbsd-7c96b20faa636f3adccdd225834483c43504363c.tar.xz
wireguard-openbsd-7c96b20faa636f3adccdd225834483c43504363c.zip
fix parms in tcfs_encrypt_key. I'm not sure if this is fine, tho.
reading tcf_keymaint looks like args should be swapped. niels?
-rw-r--r--usr.bin/tcfs/tcfsaddgroup.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tcfs/tcfsaddgroup.c b/usr.bin/tcfs/tcfsaddgroup.c
index 8530db26283..c0ae96a1fa4 100644
--- a/usr.bin/tcfs/tcfsaddgroup.c
+++ b/usr.bin/tcfs/tcfsaddgroup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcfsaddgroup.c,v 1.5 2000/06/19 20:35:47 fgsch Exp $ */
+/* $OpenBSD: tcfsaddgroup.c,v 1.6 2000/06/19 20:50:58 fgsch Exp $ */
/*
* Transparent Cryptographic File System (TCFS) for NetBSD
@@ -356,7 +356,8 @@ addgroup_main (int argn, char *argv[])
/*
* Encrypt the just generated key with the user password
*/
- if (!tcfs_encrypt_key (user, passwd, newkey, cryptedkey, GROUPKEY))
+ if (!tcfs_encrypt_key (passwd, newkey, GKEYSIZE,
+ cryptedkey, GROUPKEY))
tcfs_error (ER_MEM, NULL);
free (newkey);