home *** CD-ROM | disk | FTP | other *** search
- /*
- * Copyright 1988, 1989, 1990, John F. Haugh II
- * All rights reserved.
- *
- * Use, duplication, and disclosure prohibited without
- * the express written permission of the author.
- */
-
- /*
- * This information is not derived from AT&T licensed sources. Posted
- * to the USENET 11/88, and updated 11/90 with information from SVR4.
- *
- * @(#)shadow.h 3.1 10:14:23 11/9/90
- */
-
- /*
- * Shadow password security file structure.
- */
-
- struct spwd {
- char *sp_namp; /* login name */
- char *sp_pwdp; /* encrypted password */
- long sp_lstchg; /* date of last change */
- long sp_min; /* minimum number of days between changes */
- long sp_max; /* maximum number of days between changes */
- long sp_warn; /* number of days of warning before password
- expires */
- long sp_inact; /* number of days after password expires
- until the account becomes unusable. */
- long sp_expire; /* days since 1/1/70 until account expires */
- unsigned long sp_flag; /* reserved for future use */
- };
-
- /*
- * Shadow password security file functions.
- */
-
- struct spwd *getspent ();
- struct spwd *getspnam ();
- struct spwd *sgetspent ();
- void setspent ();
- void endspent ();
- struct spwd *fgetspent ();
- int putspent ();
-
- #define SHADOW "/etc/shadow"
-