⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 auth_des.h

📁 操作系统SunOS 4.1.3版本的源码
💻 H
字号:
/*	@(#)auth_des.h 1.1 92/07/30 SMI	*//* * auth_des.h, Protocol for DES style authentication for RPC * * Copyright (C) 1986, Sun Microsystems, Inc. */#ifndef _rpc_auth_des_h#define	_rpc_auth_des_h/* * 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;		/* associated 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 /*!_rpc_auth_des_h*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -