[Git][NTPsec/ntpsec][master] 2 commits: Fix SIGHUP path to checking certificates
Hal Murray
gitlab at mg.gitlab.com
Wed Apr 15 21:13:15 UTC 2020
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
7c589dec by Hal Murray at 2020-04-15T14:11:51-07:00
Fix SIGHUP path to checking certificates
- - - - -
33a554b7 by Hal Murray at 2020-04-15T14:11:51-07:00
Add comment that 1.1.1 works
- - - - -
2 changed files:
- ntpd/nts_client.c
- ntpd/nts_server.c
Changes:
=====================================
ntpd/nts_client.c
=====================================
@@ -483,7 +483,7 @@ bool nts_make_keys(SSL *ssl, uint16_t aead, uint8_t *c2s, uint8_t *s2c, int keyl
// Subject: [Ntp] [NTS4NTP] info for NTS developers
// From: Martin Langer <mart.langer at ostfalia.de>
// Date: Tue, 15 Jan 2019 11:40:13 +0100
- // https://mailarchive.ietf.org/arch/msg/ntp/nkc-9n6XOPt5Glgi_ueLvuD9EfY
+ // https://mailarchive.ietf.org/arch/msg/ntp/nkc-9n6XOPt5Glgi_ueLvuD9EfY // NB: 1.1.1 works and is shipped with Ubuntu 18.04.4 LTS Bionic
const char *label = "EXPORTER-network-time-security/1";
unsigned char context[5];
context[0] = (nts_protocol_NTP >> 8) & 0xFF;
=====================================
ntpd/nts_server.c
=====================================
@@ -155,13 +155,13 @@ bool nts_server_init2(void) {
/* called every hour */
void nts_cert_timer(void) {
- if (NULL == server_ctx)
- return;
check_cert_file();
}
/* call hourly and by SIGHUP */
void check_cert_file(void) {
+ if (NULL == server_ctx)
+ return;
nts_lock_certlock();
nts_reload_certificate(server_ctx);
nts_unlock_certlock();
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/compare/b1e40a8036773677036b228090d045c91a7a7976...33a554b7e9b7ec8241fd92bd7c0fcddb35e570ce
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/compare/b1e40a8036773677036b228090d045c91a7a7976...33a554b7e9b7ec8241fd92bd7c0fcddb35e570ce
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20200415/e17aa99b/attachment.htm>
More information about the vc
mailing list