2b2fbc76629c55824f6483551665ca86281960c7
[ira/wip.git] / source4 / librpc / idl / ntp_signd.idl
1 /*
2   NTP signing IRPC interface
3 */
4
5 #include "idl_types.h"
6
7 [
8   uuid("0da00951-5b6c-4488-9a89-750cac70920c"),
9   version(1.0),
10   pointer_default(unique)
11 ]
12 interface ntp_signd
13 {
14
15         typedef [v1_enum] enum {
16                 SIGN_TO_CLIENT = 0,
17                 ASK_SERVER_TO_SIGN = 1,
18                 CHECK_SERVER_SIGNATURE = 2,
19                 SIGNING_SUCCESS = 3,
20                 SIGNING_FAILURE = 4
21         } ntp_signd_op;
22
23         typedef [flag(NDR_BIG_ENDIAN),public] struct {
24                 uint32 version;
25                 ntp_signd_op op;
26                 uint16 packet_id;
27                 [flag(NDR_LITTLE_ENDIAN)] uint32 key_id;
28                 [flag(NDR_REMAINING)]   DATA_BLOB packet_to_sign;
29                 
30         } sign_request;
31
32         typedef [flag(NDR_BIG_ENDIAN),public] struct samba_key_out {
33                 uint32 version;
34                 ntp_signd_op op;
35                 uint32 packet_id;
36                 [flag(NDR_REMAINING)]   DATA_BLOB signed_packet;
37         } signed_reply;
38
39         void decode_sign_requst(
40                 [in] sign_request request
41                 );
42
43         
44 }