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

File: [local] / src / usr.bin / tcfs / Attic / tcfspwdb.h (download)

Revision 1.3, Mon Jun 19 20:35:48 2000 UTC (23 years, 11 months ago) by fgsch
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.2: +2 -0 lines

add openbsd tag

/*	$OpenBSD: tcfspwdb.h,v 1.3 2000/06/19 20:35:48 fgsch Exp $	*/

/*
 *	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
 */

#ifndef _TCFSPWDB_H_
#define _TCFSPWDB_H_

#include <sys/param.h>
#include <unistd.h>
#include <limits.h>
#include "tcfsdefines.h"

#define UserLen 	LOGIN_NAME_MAX
#define PassLen 	UUKEYSIZE
#define MaxLineLen 	100
#define MaxUserLen  	LOGIN_NAME_MAX
#define NumOfField   2

typedef struct tcfspwdb_r
{
	char user[LOGIN_NAME_MAX];
	char upw[UUKEYSIZE + 1];
} tcfspwdb;

typedef struct tcfsgpwdb_r
{
	char user[LOGIN_NAME_MAX];
	char gkey[UUGKEYSIZE + 1];
	gid_t gid;
	int n;
	int soglia;
} tcfsgpwdb;

#define U_DEL	0
#define U_NEW	1
#define U_CHG	2
#define U_CKL	3

#define F_USR			0x80
#define F_PWD			0x40
#define F_GID			0x20
#define F_GKEY			0x10
#define F_MEMBERS		0x08
#define F_THRESHOLD	0x04

#define TCFSPWDBSIZ	1024

#define TCFSPWDB	"/etc/tcfs/tcfspwdb"
#define TCFSPWDFILE	"/etc/tcfs/tcfspwdb"
#define TCFSPWDOLD	"/etc/tcfs/tcfspwdb.old"
#define TCFSPWDLOCK	"/etc/tcfs/tcfspwdb.lock"
#define TCFSPWDTMP	"/etc/tcfs/tcfstmp"

#define TCFSGPWDB	"/etc/tcfs/tcfsgpwdb"

#endif /* _TCFSPWDB_H_ */