summaryrefslogtreecommitdiff
path: root/usr.bin/tcfs/tcfslib.h
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2000-06-19 14:24:08 +0000
committerNiels Provos <provos@cvs.openbsd.org>2000-06-19 14:24:08 +0000
commit153de7d01d8a7f36c2494a42a73bab5fe367dbf4 (patch)
treee878d2f0f1ebadbaa5ec3ffa08298580467c19b6 /usr.bin/tcfs/tcfslib.h
parentb3b5bc44e416215ba12a9e7a0be889c8efd6b47a (diff)
cleanup key encryption
Diffstat (limited to 'usr.bin/tcfs/tcfslib.h')
-rw-r--r--usr.bin/tcfs/tcfslib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tcfs/tcfslib.h b/usr.bin/tcfs/tcfslib.h
index 6f8f52b861e..337cb6c31b5 100644
--- a/usr.bin/tcfs/tcfslib.h
+++ b/usr.bin/tcfs/tcfslib.h
@@ -25,8 +25,8 @@ extern void tcfsgpwdbr_dispose (tcfsgpwdb *p);
extern int tcfs_chgpwd (char *u, char *o, char *p);
extern int tcfs_group_chgpwd (char *u, gid_t gid, char *o, char *p);
extern int tcfs_chgpassword (char *u, char *o, char *p);
-extern int tcfs_decrypt_key (char *u, char *pwd, unsigned char *t, unsigned char *tk, unsigned int flag);
-extern int tcfs_encrypt_key (char *u, char *pw, unsigned char *key, unsigned char *ek, unsigned int flag);
+extern int tcfs_decrypt_key (char *pwd, u_char *t, u_char *tk, int tklen);
+extern int tcfs_encrypt_key (char *pwd, u_char *key, int klen, u_char *ek, int eklen);
extern char *tcfs_decode (char *t, int *l);
extern char *tcfs_encode (char *t, int l);
extern char *gentcfskey (void);