2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3 * unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part. Users
5 * may copy or modify Sun RPC without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user.
9 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
10 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
11 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
13 * Sun RPC is provided with no support and without any obligation on the
14 * part of Sun Microsystems, Inc. to assist in its use, correction,
15 * modification or enhancement.
17 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
18 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
19 * OR ANY PART THEREOF.
21 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
22 * or profits or other special, indirect and consequential damages, even if
23 * Sun has been advised of the possibility of such damages.
25 * Sun Microsystems, Inc.
27 * Mountain View, California 94043
29 * @(#)auth_des.h 2.2 88/07/29 4.0 RPCSRC; from 1.3 88/02/08 SMI
30 * $DragonFly: src/include/rpc/auth_des.h,v 1.2 2003/11/14 01:01:50 dillon Exp $
34 * Copyright (c) 1988 by Sun Microsystems, Inc.
38 * auth_des.h, Protocol for DES style authentication for RPC
45 * There are two kinds of "names": fullnames and nicknames
47 enum authdes_namekind
{
53 * A fullname contains the network name of the client,
54 * a conversation key and the window
56 struct authdes_fullname
{
57 char *name
; /* network name of client, up to MAXNETNAMELEN */
58 des_block key
; /* conversation key */
59 u_long window
; /* associated window */
67 enum authdes_namekind adc_namekind
;
68 struct authdes_fullname adc_fullname
;
75 * A des authentication verifier
79 struct timeval adv_ctime
; /* clear time */
80 des_block adv_xtime
; /* crypt time */
86 * des authentication verifier: client variety
88 * adv_timestamp is the current time.
89 * adv_winverf is the credential window + 1.
90 * Both are encrypted using the conversation key.
92 #define adv_timestamp adv_time_u.adv_ctime
93 #define adv_xtimestamp adv_time_u.adv_xtime
94 #define adv_winverf adv_int_u
97 * des authentication verifier: server variety
99 * adv_timeverf is the client's timestamp + client's window
100 * adv_nickname is the server's nickname for the client.
101 * adv_timeverf is encrypted using the conversation key.
103 #define adv_timeverf adv_time_u.adv_ctime
104 #define adv_xtimeverf adv_time_u.adv_xtime
105 #define adv_nickname adv_int_u
108 extern int authdes_getucred ( struct authdes_cred
*, uid_t
*, gid_t
*, int *, gid_t
* );
111 #endif /* ndef _AUTH_DES_ */