home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2287 / shadow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-28  |  879 b   |  41 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.3    16:34:15    11/2/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. struct    spwd    *sgetspent ();
  35. void    setspent ();
  36. void    endspent ();
  37. struct    spwd    *fgetspent ();
  38. int    putspent ();
  39.  
  40. #define  SHADOW "/etc/shadow"
  41.