libcli/named_pipe_auth Remove support for unused levels 0-2.
[Samba.git] / librpc / idl / named_pipe_auth.idl
blobde89588664ac4efbf92a7fa5c98c0758d1d71661
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 uint32 gssapi_delegated_creds_length;
26 [size_is(gssapi_delegated_creds_length)]
27 uint8 *gssapi_delegated_creds;
28 } named_pipe_auth_req_info3;
30 typedef [switch_type(uint32)] union {
31 [case(3)] named_pipe_auth_req_info3 info3;
32 } named_pipe_auth_req_info;
34 typedef [public,gensize] struct {
35 [flag(NDR_BIG_ENDIAN),
36 value(ndr_size_named_pipe_auth_req(r,ndr->flags)-4)]
37 uint32 length;
38 [charset(DOS),value(NAMED_PIPE_AUTH_MAGIC)] uint8 magic[4];
39 uint32 level;
40 [switch_is(level)] named_pipe_auth_req_info info;
41 } named_pipe_auth_req;
43 typedef struct {
44 uint16 file_type;
45 uint16 device_state;
46 hyper allocation_size;
47 } named_pipe_auth_rep_info3;
49 typedef [switch_type(uint32)] union {
50 [case(3)] named_pipe_auth_rep_info3 info3;
51 } named_pipe_auth_rep_info;
53 typedef [public,gensize] struct {
54 [flag(NDR_BIG_ENDIAN),
55 value(ndr_size_named_pipe_auth_rep(r,ndr->flags)-4)]
56 uint32 length;
57 [charset(DOS),value(NAMED_PIPE_AUTH_MAGIC)] uint8 magic[4];
58 uint32 level;
59 [switch_is(level)] named_pipe_auth_rep_info info;
60 NTSTATUS status;
61 } named_pipe_auth_rep;