diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-08-22 11:09:30 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-08-22 11:14:22 +1000 |
commit | 497234c1cbded9855b817114a6517c58daa25805 (patch) | |
tree | 692d1660ff077d4a6dee4c4c40e8c12d4a9692a1 /source4/ntp_signd | |
parent | f9c0f889624681c9244140c263b4ed072980dbcc (diff) | |
download | samba-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/ntp_signd')
-rw-r--r-- | source4/ntp_signd/ntp_signd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/ntp_signd/ntp_signd.c b/source4/ntp_signd/ntp_signd.c index 6c6416dea0..8ea7fe4ff9 100644 --- a/source4/ntp_signd/ntp_signd.c +++ b/source4/ntp_signd/ntp_signd.c @@ -74,7 +74,6 @@ static NTSTATUS signing_failure(struct ntp_signd_connection *ntp_signdconn, NT_STATUS_HAVE_NO_MEMORY(tmp_ctx); - signed_reply.version = 1; signed_reply.op = SIGNING_FAILURE; signed_reply.packet_id = packet_id; signed_reply.signed_packet = data_blob(NULL, 0); @@ -155,7 +154,7 @@ static NTSTATUS ntp_signd_recv(void *private_data, DATA_BLOB wrapped_input) /* We need to implement 'check signature' and 'request server * to sign' operations at some point */ - if (sign_request.version != 1) { + if (sign_request.version != NTP_SIGND_PROTOCOL_VERSION_0) { talloc_free(tmp_ctx); return signing_failure(ntp_signdconn, sign_request.packet_id); } @@ -214,7 +213,6 @@ static NTSTATUS ntp_signd_recv(void *private_data, DATA_BLOB wrapped_input) } /* Generate the reply packet */ - signed_reply.version = 1; signed_reply.packet_id = sign_request.packet_id; signed_reply.op = SIGNING_SUCCESS; signed_reply.signed_packet = data_blob_talloc(tmp_ctx, |