lib/tevent: close pipe_fds on event_context destruction
[Samba/bjacke.git] / librpc / idl / named_pipe_auth.idl
blobfd3f563c53231c9f8704d58b5cddc7ca9087ad79
1 #include "idl_types.h"
2 /*
3 miscellaneous IDL structures
4 */
6 import "netlogon.idl";
9 pointer_default(unique)
11 interface named_pipe_auth
13 const char *NAMED_PIPE_AUTH_MAGIC = "NPAM";
15 typedef struct {
16 [charset(UTF8),string] uint8 *client_name;
17 [charset(DOS),string] uint8 *client_addr;
18 uint16 client_port;
19 [charset(UTF8),string] uint8 *server_name;
20 [charset(DOS),string] uint8 *server_addr;
21 uint16 server_port;
22 netr_SamInfo3 *sam_info3;
23 uint32 session_key_length;
24 [size_is(session_key_length)] uint8 *session_key;
25 } named_pipe_auth_req_info2;
27 typedef [switch_type(uint32)] union {
28 [case(0)] ;/* anonymous */
29 [case(1)] netr_SamInfo3 info1;
30 [case(2)] named_pipe_auth_req_info2 info2;
31 } named_pipe_auth_req_info;
33 typedef [public,gensize] struct {
34 [flag(NDR_BIG_ENDIAN),
35 value(ndr_size_named_pipe_auth_req(r,ndr->iconv_convenience,ndr->flags)-4)]
36 uint32 length;
37 [charset(DOS),value(NAMED_PIPE_AUTH_MAGIC)] uint8 magic[4];
38 uint32 level;
39 [switch_is(level)] named_pipe_auth_req_info info;
40 } named_pipe_auth_req;
42 typedef struct {
43 uint16 file_type;
44 uint16 device_state;
45 hyper allocation_size;
46 } named_pipe_auth_rep_info2;
48 typedef [switch_type(uint32)] union {
49 [case(0)] ;
50 [case(1)] ;
51 [case(2)] named_pipe_auth_rep_info2 info2;
52 } named_pipe_auth_rep_info;
54 typedef [public,gensize] struct {
55 [flag(NDR_BIG_ENDIAN),
56 value(ndr_size_named_pipe_auth_rep(r,ndr->iconv_convenience,ndr->flags)-4)]
57 uint32 length;
58 [charset(DOS),value(NAMED_PIPE_AUTH_MAGIC)] uint8 magic[4];
59 uint32 level;
60 [switch_is(level)] named_pipe_auth_rep_info info;
61 NTSTATUS status;
62 } named_pipe_auth_rep;