📄 auth_des.h
字号:
/* @(#)auth_des.h 4.1 (ULTRIX) 7/2/90 *//************************************************************************ * * * Copyright (c) 1986 by * * Digital Equipment Corporation, Maynard, MA * * All rights reserved. * * * * This software is furnished under a license and may be used and * * copied only in accordance with the terms of such license and * * with the inclusion of the above copyright notice. This * * software or any other copies thereof may not be provided or * * otherwise made available to any other person. No title to and * * ownership of the software is hereby transferred. * * * * This software is derived from software received from the * * University of California, Berkeley, and from Bell * * Laboratories. Use, duplication, or disclosure is subject to * * restrictions under license agreements with University of * * California and with AT&T. * * * * The information in this software is subject to change without * * notice and should not be construed as a commitment by Digital * * Equipment Corporation. * * * * Digital assumes no responsibility for the use or reliability * * of its software on equipment which is not supplied by Digital. * * * ************************************************************************//* * Portions of this software have been licensed to * Digital Equipment Company, Maynard, MA. * Copyright (c) 1987 Sun Microsystems, Inc. ALL RIGHTS RESERVED. *//* * Modification History: * * 14 Jun 89 -- condylis * Added copyright header. * *//* * auth_des.h, Protocol for DES style authentication for RPC */#ifndef _AUTH_DES_#define _AUTH_DES_/* * There are two kinds of "names": fullnames and nicknames */enum authdes_namekind { ADN_FULLNAME, ADN_NICKNAME};/* * A fullname contains the network name of the client, * a conversation key and the window */struct authdes_fullname { char *name; /* network name of client, up to MAXNETNAMELEN */ des_block key; /* conversation key */ u_long window; /* encrypted window */};/* * A credential */struct authdes_cred { enum authdes_namekind adc_namekind; struct authdes_fullname adc_fullname; u_long adc_nickname;};/* * A des authentication verifier */struct authdes_verf { union { struct timeval adv_ctime; /* clear time */ des_block adv_xtime; /* crypt time */ } adv_time_u; u_long adv_int_u;};/* * des authentication verifier: client variety * * adv_timestamp is the current time. * adv_winverf is the credential window + 1. * Both are encrypted using the conversation key. */#define adv_timestamp adv_time_u.adv_ctime#define adv_xtimestamp adv_time_u.adv_xtime#define adv_winverf adv_int_u/* * des authentication verifier: server variety * * adv_timeverf is the client's timestamp + client's window * adv_nickname is the server's nickname for the client. * adv_timeverf is encrypted using the conversation key. */#define adv_timeverf adv_time_u.adv_ctime#define adv_xtimeverf adv_time_u.adv_xtime#define adv_nickname adv_int_u#endif /* ndef _AUTH_DES_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -