preparing for release of alpha.0.2
[Samba.git] / source / include / rpc_netsec.h
blob62158a66d14a5d2765c808256e6c76c5ea47fb4e
1 /*
2 Unix SMB/Netbios implementation.
3 Version 1.9.
4 SMB parameters and setup
5 Copyright (C) Andrew Tridgell 1992-2000
6 Copyright (C) Luke Kenneth Casson Leighton 1996-2000
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #ifndef _RPC_NETSEC_H /* RPC_NETSEC_H */
24 #define RPC_NETSEC_H
26 #include "rpc_misc.h" /* this only pulls in STRHDR */
28 /* this is TEMPORARILY coded up as a specific structure */
29 /* this structure comes after the bind request */
30 /* RPC_AUTH_NETSEC_NEG */
31 typedef struct rpc_auth_netsec_neg_info
33 fstring domain; /* calling workstations's domain */
34 fstring myname; /* calling workstation's name */
36 } RPC_AUTH_NETSEC_NEG;
39 /* RPC_AUTH_NETSEC_RESP */
40 typedef struct rpc_auth_netsec_resp_info
42 uint32 flags; /* 0x0500 0000 */
44 } RPC_AUTH_NETSEC_RESP;
46 #define NETSEC_SIGNATURE \
47 { 0x77, 0x00, 0x7a, 0x00, 0xff, 0xff, 0x00, 0x00 }
49 /* attached to the end of encrypted rpc requests and responses */
50 /* RPC_AUTH_NETSEC_CHK */
51 typedef struct rpc_auth_netsec_chk_info
53 uint8 sig [8]; /* 77 00 7a 00 ff ff 00 00 */
54 uint8 data1[8];
55 uint8 data3[8]; /* verifier, seq num */
56 uint8 data8[8]; /* random 8-byte nonce */
58 } RPC_AUTH_NETSEC_CHK;
60 #endif /* RPC_NETSEC_H */