diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2000-06-18 22:07:26 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2000-06-18 22:07:26 +0000 |
commit | 48893562fdfa12c4f376d2556da18e817a34484f (patch) | |
tree | 033e9aaa47f5617ba6ffbcf7e071ffb8f8f71b07 /usr.bin/tcfs/tcfslib.h | |
parent | 47bc7a26b81967e77c0f021899f1544966df67e2 (diff) |
Initial import of very much rewritten TCFS userland. This code is still
nasty.
Diffstat (limited to 'usr.bin/tcfs/tcfslib.h')
-rw-r--r-- | usr.bin/tcfs/tcfslib.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/usr.bin/tcfs/tcfslib.h b/usr.bin/tcfs/tcfslib.h new file mode 100644 index 00000000000..a94cf5216e0 --- /dev/null +++ b/usr.bin/tcfs/tcfslib.h @@ -0,0 +1,45 @@ +/* + * Transparent Cryptographic File System (TCFS) for NetBSD + * Author and mantainer: Luigi Catuogno [luicat@tcfs.unisa.it] + * + * references: http://tcfs.dia.unisa.it + * tcfs-bsd@tcfs.unisa.it + */ + +/* + * Base utility set v0.1 + * + * $Source: /cvs/OpenBSD/src/usr.bin/tcfs/Attic/tcfslib.h,v $ + * $State: Exp $ + * $Revision: 1.1 $ + * $Author: provos $ + * $Date: 2000/06/18 22:07:24 $ + * + */ + +/* RCS_HEADER_ENDS_HERE */ + + + +#include <unistd.h> +#include "tcfsdefines.h" +#include "tcfspwdb.h" + +extern int tcfspwdbr_new (tcfspwdb **p); +extern int tcfspwdbr_edit (tcfspwdb **p, int i, ...); +extern int tcfspwdbr_read (tcfspwdb *p, int i, ...); +extern void tcfspwdbr_dispose (tcfspwdb *p); +extern int tcfsgpwdbr_new (tcfsgpwdb **p); +extern int tcfsgpwdbr_edit (tcfsgpwdb **p, int i, ...); +extern int tcfsgpwdbr_read (tcfsgpwdb *p, int i, ...); +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 char *tcfs_decode (char *t, int *l); +extern char *tcfs_encode (char *t, int l); +extern char *gentcfskey (void); + + |