[BACK]Return to tcfslib.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / tcfs

Annotation of src/usr.bin/tcfs/tcfslib.h, Revision 1.3

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:
                     17: extern int tcfspwdbr_new (tcfspwdb **p);
                     18: extern int tcfspwdbr_edit (tcfspwdb **p, int i, ...);
                     19: extern int tcfspwdbr_read (tcfspwdb *p, int i, ...);
                     20: extern void tcfspwdbr_dispose (tcfspwdb *p);
                     21: extern int tcfsgpwdbr_new (tcfsgpwdb **p);
                     22: extern int tcfsgpwdbr_edit (tcfsgpwdb **p, int i, ...);
                     23: extern int tcfsgpwdbr_read (tcfsgpwdb *p, int i, ...);
                     24: extern void tcfsgpwdbr_dispose (tcfsgpwdb *p);
                     25: extern int tcfs_chgpwd (char *u, char *o, char *p);
                     26: extern int tcfs_group_chgpwd (char *u, gid_t gid, char *o, char *p);
                     27: extern int tcfs_chgpassword (char *u, char *o, char *p);
1.3     ! provos     28: extern int tcfs_decrypt_key (char *pwd, u_char *t, u_char *tk, int tklen);
        !            29: extern int tcfs_encrypt_key (char *pwd, u_char *key, int klen, u_char *ek, int eklen);
1.1       provos     30: extern char *tcfs_decode (char *t, int *l);
                     31: extern char *tcfs_encode (char *t, int l);
                     32: extern char *gentcfskey (void);
                     33:
                     34: