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