home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1704 / shadow.h < prev   
C/C++ Source or Header  |  1990-12-28  |  852b  |  40 lines

  1. /*
  2.  * Copyright 1988, 1989, 1990, John F. Haugh II
  3.  * All rights reserved.
  4.  *
  5.  * Use, duplication, and disclosure prohibited without
  6.  * the express written permission of the author.
  7.  */
  8.  
  9. /*
  10.  * This information is not derived from AT&T licensed sources.  Posted
  11.  * to the USENET 11/88.
  12.  *
  13.  *    @(#)shadow.h    2.2    19:24:13    7/29/90
  14.  */
  15.  
  16. /*
  17.  * Shadow password security file structure.
  18.  */
  19.  
  20. struct    spwd {
  21.     char    *sp_namp;    /* login name */
  22.     char    *sp_pwdp;    /* encrypted password */
  23.     long    sp_lstchg;    /* date of last change */
  24.     long    sp_max;        /* maximum number of days between changes */
  25.     long    sp_min;        /* minimum number of days between changes */
  26. };
  27.  
  28. /*
  29.  * Shadow password security file functions.
  30.  */
  31.  
  32. struct    spwd    *getspent ();
  33. struct    spwd    *getspnam ();
  34. void    setspent ();
  35. void    endspent ();
  36. struct    spwd    *fgetspent ();
  37. int    putspent ();
  38.  
  39. #define  SHADOW "/etc/shadow"
  40.