tevent: release 0.16.1
[Samba.git] / librpc / idl / named_pipe_auth.idl
blob807a312e4c08df06c72b24a51506896599eff19e
1 #include "idl_types.h"
2 /*
3 miscellaneous IDL structures
4 */
6 import "netlogon.idl", "security.idl", "auth.idl";
9 pointer_default(unique)
11 interface named_pipe_auth
13 const char *NAMED_PIPE_AUTH_MAGIC = "NPAM";
15 typedef [public] struct {
16 uint8 transport;
17 [charset(UTF8),string] uint8 *remote_client_name;
18 [charset(DOS),string] uint8 *remote_client_addr;
19 uint16 remote_client_port;
20 [charset(UTF8),string] uint8 *local_server_name;
21 [charset(DOS),string] uint8 *local_server_addr;
22 uint16 local_server_port;
23 auth_session_info_transport *session_info;
24 } named_pipe_auth_req_info8;
26 typedef [switch_type(uint32)] union {
27 [case(8)] named_pipe_auth_req_info8 info8;
28 } named_pipe_auth_req_info;
30 typedef [public,gensize] struct {
31 [flag(NDR_BIG_ENDIAN),
32 value(ndr_size_named_pipe_auth_req(r,ndr->flags)-4)]
33 uint32 length;
34 [charset(DOS),value(NAMED_PIPE_AUTH_MAGIC)] uint8 magic[4];
35 uint32 level;
36 [switch_is(level)] named_pipe_auth_req_info info;
37 } named_pipe_auth_req;
39 typedef struct {
40 uint16 file_type;
41 uint16 device_state;
42 hyper allocation_size;
43 } named_pipe_auth_rep_info8;
45 typedef [switch_type(uint32)] union {
46 [case(8)] named_pipe_auth_rep_info8 info8;
47 } named_pipe_auth_rep_info;
49 typedef [public,gensize] struct {
50 [flag(NDR_BIG_ENDIAN),
51 value(ndr_size_named_pipe_auth_rep(r,ndr->flags)-4)]
52 uint32 length;
53 [charset(DOS),value(NAMED_PIPE_AUTH_MAGIC)] uint8 magic[4];
54 uint32 level;
55 [switch_is(level)] named_pipe_auth_rep_info info;
56 NTSTATUS status;
57 } named_pipe_auth_rep;