Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../usr/include/tirpc/rpc
File: auth_des.h
/* @(#)auth_des.h 2.2 88/07/29 4.0 RPCSRC; from 1.3 88/02/08 SMI */
[0] Fix | Delete
/* $FreeBSD: src/include/rpc/auth_des.h,v 1.3 2002/03/23 17:24:55 imp Exp $ */
[1] Fix | Delete
/*
[2] Fix | Delete
* Copyright (c) 2009, Sun Microsystems, Inc.
[3] Fix | Delete
* All rights reserved.
[4] Fix | Delete
*
[5] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[6] Fix | Delete
* modification, are permitted provided that the following conditions are met:
[7] Fix | Delete
* - Redistributions of source code must retain the above copyright notice,
[8] Fix | Delete
* this list of conditions and the following disclaimer.
[9] Fix | Delete
* - Redistributions in binary form must reproduce the above copyright notice,
[10] Fix | Delete
* this list of conditions and the following disclaimer in the documentation
[11] Fix | Delete
* and/or other materials provided with the distribution.
[12] Fix | Delete
* - Neither the name of Sun Microsystems, Inc. nor the names of its
[13] Fix | Delete
* contributors may be used to endorse or promote products derived
[14] Fix | Delete
* from this software without specific prior written permission.
[15] Fix | Delete
*
[16] Fix | Delete
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
[17] Fix | Delete
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
[18] Fix | Delete
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
[19] Fix | Delete
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
[20] Fix | Delete
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
[21] Fix | Delete
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
[22] Fix | Delete
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
[23] Fix | Delete
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
[24] Fix | Delete
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
[25] Fix | Delete
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
[26] Fix | Delete
* POSSIBILITY OF SUCH DAMAGE.
[27] Fix | Delete
*
[28] Fix | Delete
* from: @(#)auth_des.h 2.2 88/07/29 4.0 RPCSRC
[29] Fix | Delete
* from: @(#)auth_des.h 1.14 94/04/25 SMI
[30] Fix | Delete
*/
[31] Fix | Delete
[32] Fix | Delete
/*
[33] Fix | Delete
* Copyright (c) 1986 - 1991 by Sun Microsystems, Inc.
[34] Fix | Delete
*/
[35] Fix | Delete
[36] Fix | Delete
/*
[37] Fix | Delete
* auth_des.h, Protocol for DES style authentication for RPC
[38] Fix | Delete
*/
[39] Fix | Delete
[40] Fix | Delete
#ifndef _TI_AUTH_DES_
[41] Fix | Delete
#define _TI_AUTH_DES_
[42] Fix | Delete
[43] Fix | Delete
#include <rpc/auth.h>
[44] Fix | Delete
[45] Fix | Delete
/*
[46] Fix | Delete
* There are two kinds of "names": fullnames and nicknames
[47] Fix | Delete
*/
[48] Fix | Delete
enum authdes_namekind {
[49] Fix | Delete
ADN_FULLNAME,
[50] Fix | Delete
ADN_NICKNAME
[51] Fix | Delete
};
[52] Fix | Delete
[53] Fix | Delete
/*
[54] Fix | Delete
* A fullname contains the network name of the client,
[55] Fix | Delete
* a conversation key and the window
[56] Fix | Delete
*/
[57] Fix | Delete
struct authdes_fullname {
[58] Fix | Delete
char *name; /* network name of client, up to MAXNETNAMELEN */
[59] Fix | Delete
union des_block key; /* conversation key */
[60] Fix | Delete
/* u_long window; */
[61] Fix | Delete
u_int32_t window; /* associated window */
[62] Fix | Delete
};
[63] Fix | Delete
[64] Fix | Delete
[65] Fix | Delete
/*
[66] Fix | Delete
* A credential
[67] Fix | Delete
*/
[68] Fix | Delete
struct authdes_cred {
[69] Fix | Delete
enum authdes_namekind adc_namekind;
[70] Fix | Delete
struct authdes_fullname adc_fullname;
[71] Fix | Delete
/*u_long adc_nickname;*/
[72] Fix | Delete
u_int32_t adc_nickname;
[73] Fix | Delete
};
[74] Fix | Delete
[75] Fix | Delete
[76] Fix | Delete
[77] Fix | Delete
/*
[78] Fix | Delete
* A des authentication verifier
[79] Fix | Delete
*/
[80] Fix | Delete
struct authdes_verf {
[81] Fix | Delete
union {
[82] Fix | Delete
struct timeval adv_ctime; /* clear time */
[83] Fix | Delete
des_block adv_xtime; /* crypt time */
[84] Fix | Delete
} adv_time_u;
[85] Fix | Delete
/*u_long adv_int_u;*/
[86] Fix | Delete
u_int32_t adv_int_u;
[87] Fix | Delete
};
[88] Fix | Delete
[89] Fix | Delete
/*
[90] Fix | Delete
* des authentication verifier: client variety
[91] Fix | Delete
*
[92] Fix | Delete
* adv_timestamp is the current time.
[93] Fix | Delete
* adv_winverf is the credential window + 1.
[94] Fix | Delete
* Both are encrypted using the conversation key.
[95] Fix | Delete
*/
[96] Fix | Delete
#define adv_timestamp adv_time_u.adv_ctime
[97] Fix | Delete
#define adv_xtimestamp adv_time_u.adv_xtime
[98] Fix | Delete
#define adv_winverf adv_int_u
[99] Fix | Delete
[100] Fix | Delete
/*
[101] Fix | Delete
* des authentication verifier: server variety
[102] Fix | Delete
*
[103] Fix | Delete
* adv_timeverf is the client's timestamp + client's window
[104] Fix | Delete
* adv_nickname is the server's nickname for the client.
[105] Fix | Delete
* adv_timeverf is encrypted using the conversation key.
[106] Fix | Delete
*/
[107] Fix | Delete
#define adv_timeverf adv_time_u.adv_ctime
[108] Fix | Delete
#define adv_xtimeverf adv_time_u.adv_xtime
[109] Fix | Delete
#define adv_nickname adv_int_u
[110] Fix | Delete
[111] Fix | Delete
/*
[112] Fix | Delete
* Map a des credential into a unix cred.
[113] Fix | Delete
*
[114] Fix | Delete
*/
[115] Fix | Delete
#ifdef __cplusplus
[116] Fix | Delete
extern "C" {
[117] Fix | Delete
#endif
[118] Fix | Delete
extern int authdes_getucred( struct authdes_cred *, uid_t *, gid_t *, int *, gid_t * );
[119] Fix | Delete
#ifdef __cplusplus
[120] Fix | Delete
}
[121] Fix | Delete
#endif
[122] Fix | Delete
[123] Fix | Delete
#ifdef __cplusplus
[124] Fix | Delete
extern "C" {
[125] Fix | Delete
#endif
[126] Fix | Delete
extern bool_t xdr_authdes_cred(XDR *, struct authdes_cred *);
[127] Fix | Delete
extern bool_t xdr_authdes_verf(XDR *, struct authdes_verf *);
[128] Fix | Delete
extern int rtime(struct sockaddr_in *, struct timeval *,
[129] Fix | Delete
struct timeval *);
[130] Fix | Delete
extern void kgetnetname(char *);
[131] Fix | Delete
extern enum auth_stat _svcauth_des(struct svc_req *, struct rpc_msg *);
[132] Fix | Delete
#ifdef __cplusplus
[133] Fix | Delete
}
[134] Fix | Delete
#endif
[135] Fix | Delete
[136] Fix | Delete
#endif /* ndef _TI_AUTH_DES_ */
[137] Fix | Delete
[138] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function