]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Bug 3144 - NTP does not build without openSSL
authorJuergen Perlinger <perlinger@ntp.org>
Wed, 23 Nov 2016 07:34:52 +0000 (08:34 +0100)
committerJuergen Perlinger <perlinger@ntp.org>
Wed, 23 Nov 2016 07:34:52 +0000 (08:34 +0100)
 - fix SNTP to build '--without-crypto',too
 - remove some warnings that result from '--without-crypto'

bk: 5835469cqMGN9NXnZSAlHMx9Fiovsw

ntpd/ntp_control.c
ntpd/ntp_proto.c
sntp/crypto.c

index 7825b40d66cadf64ea60ba6d577c74d694b178f4..49a3297c6dd0f8d39c71cdadc8a51fe58e6b13d3 100644 (file)
@@ -1651,8 +1651,10 @@ ctl_putuint(
 }
 
 /*
- * ctl_putcal - write a decoded calendar data into the response
+ * ctl_putcal - write a decoded calendar data into the response.
+ * only used with AUTOKEY currently, so compiled conditional
  */
+#ifdef AUTOKEY
 static void
 ctl_putcal(
        const char *tag,
@@ -1676,6 +1678,7 @@ ctl_putcal(
 
        return;
 }
+#endif
 
 /*
  * ctl_putfs - write a decoded filestamp into the response
index ad04ed4ac0d7f50d784c10802fc9cc2e43fe74da..41744aa395c2dc255819ce1390a113793aa15761 100644 (file)
@@ -4054,7 +4054,7 @@ peer_xmit(
                    ntoa(&peer->srcadr), peer->hmode, xkeyid, sendlen,
                    peer->keynumber));
 #else  /* !AUTOKEY follows */
-       DPRINTF(1, ("peer_xmit: at %ld %s->%s mode %d keyid %08x len %d\n",
+       DPRINTF(1, ("peer_xmit: at %ld %s->%s mode %d keyid %08x len %zu\n",
                    current_time, peer->dstadr ?
                    ntoa(&peer->dstadr->sin) : "-",
                    ntoa(&peer->srcadr), peer->hmode, xkeyid, sendlen));
index 7b4e63833ac154959c1ab1259599bfb5e2280416..e45b21360aa9bb3e3834143b27ff14003ca12230 100644 (file)
@@ -2,7 +2,7 @@
 #include "crypto.h"
 #include <ctype.h>
 #include "isc/string.h"
-#include "libssl_compat.h"
+#include "ntp_md5.h"
 
 struct key *key_ptr;
 size_t key_cnt = 0;