1 /* $XConsortium: passwd.h /main/3 1995/10/27 16:19:23 rswiston $ */
3 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
4 * (c) Copyright 1993, 1994 International Business Machines Corp. *
5 * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
6 * (c) Copyright 1993, 1994 Novell, Inc. *
8 /* passwd.h us/unix/include/apollo/sys, brian
12 --------------------------------------------------------------------------
13 | THE FOLLOWING PROGRAMS ARE THE SOLE PROPERTY OF APOLLO COMPUTER INC. |
14 | AND CONTAIN ITS PROPRIETARY AND CONFIDENTIAL INFORMATION. |
15 --------------------------------------------------------------------------
18 12/27/88 gilbert Modifications for C++.
19 03/25/88 brian ANSI version (from .ins.c)
20 11/05/87 betsy need to include des.ins.c
21 08/31/87 betsy add support for unix encryption, remove passwd_$create
23 07/07/87 pato drop the (wrong) explicit values for passwd_$encrypt_t
24 04/02/86 lwa Change enum to short enum.
25 01/13/86 nazgul Created C version
26 04/05/82 PJL changes for DES encryption
29 #ifndef apollo_sys_passwd_ins_c
30 #define apollo_sys_passwd_ins_c
33 /* Enable function prototypes for ANSI C and C++ */
34 #if defined(__STDC__) || defined(c_plusplus) || defined(__cplusplus)
38 /* Required for C++ V2.0 */
44 #define std_$call extern
47 #include "apollo/des.h" /* copy from <apollo/sys/des.h> */
50 #define passwd_$maxlen 8
52 typedef short enum { passwd_$none, passwd_$des,
53 passwd_$unix, passwd_$unix_bits } passwd_$encrypt_t;
55 passwd_$encrypt_t ptype;
57 char plain[8]; /* passwd_$none */
58 struct { /* passwd_$des, passwd_$unix_bits */
62 struct { /* passwd_$unix */
69 typedef char passwd_$str_t[passwd_$maxlen];
71 std_$call boolean passwd_$check(
73 passwd_$str_t & pass_str,
75 passwd_$rec_t & enc_passwd,