Re-run make idl.
[ira/wip.git] / source / librpc / gen_ndr / krb5pac.h
1 /* header auto-generated by pidl */
2
3 #include <stdint.h>
4
5 #include "librpc/gen_ndr/security.h"
6 #include "librpc/gen_ndr/netlogon.h"
7 #include "librpc/gen_ndr/samr.h"
8 #ifndef _HEADER_krb5pac
9 #define _HEADER_krb5pac
10
11 struct PAC_LOGON_NAME {
12         NTTIME logon_time;
13         uint16_t size;/* [value(2*strlen_m(account_name))] */
14         const char *account_name;/* [charset(UTF16)] */
15 };
16
17 struct PAC_SIGNATURE_DATA {
18         uint32_t type;
19         DATA_BLOB signature;/* [flag(LIBNDR_FLAG_REMAINING)] */
20 }/* [public,flag(LIBNDR_PRINT_ARRAY_HEX)] */;
21
22 struct PAC_LOGON_INFO {
23         struct netr_SamInfo3 info3;
24         struct dom_sid2 *res_group_dom_sid;/* [unique] */
25         struct samr_RidWithAttributeArray res_groups;
26 }/* [gensize] */;
27
28 struct PAC_UNKNOWN_12 {
29         uint16_t upn_size;/* [value(2*strlen_m(upn_name))] */
30         uint16_t unknown1;
31         uint16_t domain_size;/* [value(2*strlen_m(domain_name))] */
32         uint16_t unknown2;
33         uint16_t unknown3;
34         uint16_t unknown4;
35         uint32_t unknown5;
36         const char *upn_name;/* [charset(UTF16)] */
37         const char *domain_name;/* [charset(UTF16)] */
38         uint32_t unknown6;
39 };
40
41 struct PAC_LOGON_INFO_CTR {
42         uint32_t unknown1;/* [value(0x00081001)] */
43         uint32_t unknown2;/* [value(0xCCCCCCCC)] */
44         uint32_t _ndr_size;/* [value(NDR_ROUND(ndr_size_PAC_LOGON_INFO(info,ndr->flags)+4,8))] */
45         uint32_t unknown3;/* [value(0x00000000)] */
46         struct PAC_LOGON_INFO *info;/* [unique] */
47 }/* [public] */;
48
49 enum PAC_TYPE
50 #ifndef USE_UINT_ENUMS
51  {
52         PAC_TYPE_LOGON_INFO=1,
53         PAC_TYPE_SRV_CHECKSUM=6,
54         PAC_TYPE_KDC_CHECKSUM=7,
55         PAC_TYPE_LOGON_NAME=10,
56         PAC_TYPE_CONSTRAINED_DELEGATION=11,
57         PAC_TYPE_UNKNOWN_12=12
58 }
59 #else
60  { __donnot_use_enum_PAC_TYPE=0x7FFFFFFF}
61 #define PAC_TYPE_LOGON_INFO ( 1 )
62 #define PAC_TYPE_SRV_CHECKSUM ( 6 )
63 #define PAC_TYPE_KDC_CHECKSUM ( 7 )
64 #define PAC_TYPE_LOGON_NAME ( 10 )
65 #define PAC_TYPE_CONSTRAINED_DELEGATION ( 11 )
66 #define PAC_TYPE_UNKNOWN_12 ( 12 )
67 #endif
68 ;
69
70 union PAC_INFO {
71         struct PAC_LOGON_INFO_CTR logon_info;/* [case(PAC_TYPE_LOGON_INFO)] */
72         struct PAC_SIGNATURE_DATA srv_cksum;/* [case(PAC_TYPE_SRV_CHECKSUM)] */
73         struct PAC_SIGNATURE_DATA kdc_cksum;/* [case(PAC_TYPE_KDC_CHECKSUM)] */
74         struct PAC_LOGON_NAME logon_name;/* [case(PAC_TYPE_LOGON_NAME)] */
75         struct PAC_UNKNOWN_12 unknown;/* [case(PAC_TYPE_UNKNOWN_12)] */
76 }/* [gensize,nodiscriminant,public] */;
77
78 struct PAC_BUFFER {
79         enum PAC_TYPE type;
80         uint32_t _ndr_size;/* [value(_ndr_size_PAC_INFO(info,type,0))] */
81         union PAC_INFO *info;/* [relative,subcontext_size(_subcontext_size_PAC_INFO(r,ndr->flags)),subcontext(0),switch_is(type),flag(LIBNDR_FLAG_ALIGN8)] */
82         uint32_t _pad;/* [value(0)] */
83 }/* [noprint,nopull,public,nopush] */;
84
85 struct PAC_DATA {
86         uint32_t num_buffers;
87         uint32_t version;
88         struct PAC_BUFFER *buffers;
89 }/* [public] */;
90
91 struct DATA_BLOB_REM {
92         DATA_BLOB remaining;/* [flag(LIBNDR_FLAG_REMAINING)] */
93 };
94
95 struct PAC_BUFFER_RAW {
96         enum PAC_TYPE type;
97         uint32_t ndr_size;
98         struct DATA_BLOB_REM *info;/* [relative,subcontext_size(NDR_ROUND(ndr_size,8)),subcontext(0),flag(LIBNDR_FLAG_ALIGN8)] */
99         uint32_t _pad;/* [value(0)] */
100 }/* [public] */;
101
102 struct PAC_DATA_RAW {
103         uint32_t num_buffers;
104         uint32_t version;
105         struct PAC_BUFFER_RAW *buffers;
106 }/* [public] */;
107
108 struct netsamlogoncache_entry {
109         time_t timestamp;
110         struct netr_SamInfo3 info3;
111 }/* [public] */;
112
113
114 struct decode_pac {
115         struct {
116                 struct PAC_DATA pac;
117         } in;
118
119 };
120
121
122 struct decode_pac_raw {
123         struct {
124                 struct PAC_DATA_RAW pac;
125         } in;
126
127 };
128
129
130 struct decode_login_info {
131         struct {
132                 struct PAC_LOGON_INFO logon_info;
133         } in;
134
135 };
136
137 #endif /* _HEADER_krb5pac */