summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-08-22 11:09:30 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-08-22 11:14:22 +1000
commit497234c1cbded9855b817114a6517c58daa25805 (patch)
tree692d1660ff077d4a6dee4c4c40e8c12d4a9692a1 /source4/librpc
parentf9c0f889624681c9244140c263b4ed072980dbcc (diff)
downloadsamba-497234c1cbded9855b817114a6517c58daa25805.tar.gz
samba-497234c1cbded9855b817114a6517c58daa25805.tar.bz2
samba-497234c1cbded9855b817114a6517c58daa25805.zip
s4:ntp_signd Fix bug 6656 - Set protocol version to 0, as used by ntpd
The change to protocol version 1 was not intentional, and broke the protocol established with the ntp.org project. Andrew Bartlett
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/idl/ntp_signd.idl6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/librpc/idl/ntp_signd.idl b/source4/librpc/idl/ntp_signd.idl
index 2b2fbc7662..b784205698 100644
--- a/source4/librpc/idl/ntp_signd.idl
+++ b/source4/librpc/idl/ntp_signd.idl
@@ -12,6 +12,8 @@
interface ntp_signd
{
+ const int NTP_SIGND_PROTOCOL_VERSION_0 = 0;
+
typedef [v1_enum] enum {
SIGN_TO_CLIENT = 0,
ASK_SERVER_TO_SIGN = 1,
@@ -21,7 +23,7 @@ interface ntp_signd
} ntp_signd_op;
typedef [flag(NDR_BIG_ENDIAN),public] struct {
- uint32 version;
+ [value(NTP_SIGND_PROTOCOL_VERSION_0)] uint32 version;
ntp_signd_op op;
uint16 packet_id;
[flag(NDR_LITTLE_ENDIAN)] uint32 key_id;
@@ -30,7 +32,7 @@ interface ntp_signd
} sign_request;
typedef [flag(NDR_BIG_ENDIAN),public] struct samba_key_out {
- uint32 version;
+ [value(NTP_SIGND_PROTOCOL_VERSION_0)] uint32 version;
ntp_signd_op op;
uint32 packet_id;
[flag(NDR_REMAINING)] DATA_BLOB signed_packet;