|
|
@ -1,4 +1,4 @@ |
|
|
|
From c964f9f8a4ca92d961255935ac1ed2f681702607 Mon Sep 17 00:00:00 2001 |
|
|
|
From 0532e94c831af38d015d3bcd56740403cb391e26 Mon Sep 17 00:00:00 2001 |
|
|
|
From: Brent Cook <busterb@gmail.com> |
|
|
|
Date: Fri, 27 Mar 2015 23:14:15 -0500 |
|
|
|
Subject: [PATCH 11/11] Notify the user when constraint support is disabled. |
|
|
@ -27,14 +27,16 @@ index 2e39604..779aed6 100644 |
|
|
|
} |
|
|
|
|
|
|
|
diff --git a/src/usr.sbin/ntpd/ntp.c b/src/usr.sbin/ntpd/ntp.c
|
|
|
|
index 0a9b4be..eb8af7b 100644
|
|
|
|
index 0a9b4be..285e30d 100644
|
|
|
|
--- a/src/usr.sbin/ntpd/ntp.c
|
|
|
|
+++ b/src/usr.sbin/ntpd/ntp.c
|
|
|
|
@@ -112,10 +112,12 @@ ntp_main(int pipe_prnt[2], int fd_ctl, struct ntpd_conf *nconf,
|
|
|
|
@@ -110,12 +110,14 @@ ntp_main(int pipe_prnt[2], int fd_ctl, struct ntpd_conf *nconf,
|
|
|
|
return (pid); |
|
|
|
} |
|
|
|
|
|
|
|
+#ifdef HAVE_LIBTLS
|
|
|
|
tls_init(); |
|
|
|
|
|
|
|
+#ifdef HAVE_LIBTLS
|
|
|
|
/* Verification will be turned off if CA is not found */ |
|
|
|
if ((conf->ca = tls_load_file(CONSTRAINT_CA, |
|
|
|
&conf->ca_len, NULL)) == NULL) |
|
|
|