Annotation of src/usr.bin/tcfs/tcfslib.h, Revision 1.8
1.8 ! fgsch 1: /* $OpenBSD: tcfslib.h,v 1.7 2000/06/20 07:09:46 fgsch Exp $ */
1.6 fgsch 2:
1.1 provos 3: /*
4: * Transparent Cryptographic File System (TCFS) for NetBSD
5: * Author and mantainer: Luigi Catuogno [luicat@tcfs.unisa.it]
6: *
7: * references: http://tcfs.dia.unisa.it
8: * tcfs-bsd@tcfs.unisa.it
9: */
10:
11: /*
12: * Base utility set v0.1
13: */
14:
15: #include <unistd.h>
16: #include "tcfsdefines.h"
17: #include "tcfspwdb.h"
18:
1.4 fgsch 19: extern int tcfspwdbr_new __P((tcfspwdb **));
20: extern int tcfspwdbr_edit __P((tcfspwdb **, int, ...));
21: extern int tcfspwdbr_read __P((tcfspwdb *, int, ...));
22: extern void tcfspwdbr_dispose __P((tcfspwdb *));
23: extern int tcfsgpwdbr_new __P((tcfsgpwdb **));
24: extern int tcfsgpwdbr_edit __P((tcfsgpwdb **, int, ...));
25: extern int tcfsgpwdbr_read __P((tcfsgpwdb *, int, ...));
26: extern void tcfsgpwdbr_dispose __P((tcfsgpwdb *));
27: extern int tcfs_chgpwd __P((char *, char *, char *));
28: extern int tcfs_group_chgpwd __P((char *, gid_t, char *, char *));
29: extern int tcfs_chgpassword __P((char *, char *, char *));
30: extern int tcfs_decrypt_key __P((char *, u_char *, u_char *, int));
31: extern int tcfs_encrypt_key __P((char *, u_char *, int, u_char *, int));
32: extern char *tcfs_decode __P((char *, int *));
33: extern char *tcfs_encode __P((char *, int ));
34: extern char *gentcfskey __P((void));
1.1 provos 35:
1.4 fgsch 36: extern int tcfs_getstatus __P((char *, struct tcfs_status *));
37: extern int tcfs_getfspath __P((char *, char *));
1.1 provos 38:
1.4 fgsch 39: extern int tcfs_proc_enable __P((char *, uid_t, pid_t, char *));
40: extern int tcfs_proc_disable __P((char *, uid_t, pid_t));
41: extern int tcfs_user_enable __P((char *, uid_t, u_char *));
42: extern int tcfs_user_disable __P((char *, uid_t));
43: extern int tcfs_group_enable __P((char *, uid_t, gid_t, int, char *));
44: extern int tcfs_group_disable __P((char *, uid_t, gid_t));
1.5 fgsch 45:
46: extern tcfspwdb *
47: tcfs_getpwnam __P((char *, tcfspwdb **));
48: extern int tcfs_putpwnam __P((char *, tcfspwdb *, int));
49:
50: extern int unix_auth __P((char **, char **, int));
1.7 fgsch 51: extern tcfsgpwdb *
52: tcfs_ggetpwnam __P((char *, gid_t, tcfsgpwdb **));
53: extern int tcfs_gputpwnam __P((char *, tcfsgpwdb *, int));
54: extern int tcfs_get_label __P((char *, char *, int *));
55: extern int tcfs_verify_fs __P((char *));
1.8 ! fgsch 56: extern int tcfs_callfunction __P((char *, struct tcfs_args *));