diff options
author | Christian Weisgerber <naddy@FreeBSD.org> | 2016-03-08 20:19:07 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@FreeBSD.org> | 2016-03-08 20:19:07 +0000 |
commit | 2bcd64c8792ebe699f5a0a518f3a1fc173a190a0 (patch) | |
tree | 17a4a28e55c24505da574c6bf52a5dd78f5060a0 /net/openntpd/files | |
parent | Update to the 20160306 development snapshot of GCC 6. (diff) |
* Reenable certificate validation through libressl
(libressl 2.2.6 seems to be happy enough with the ca_root_nss 3.22.2
upgrade)
* Avoid strptime %Z which is nonstandard and can give surprising
results on different operating systems. (Same fix as upstream.)
PR: 207685
Submitted by: mandree
Diffstat (limited to 'net/openntpd/files')
-rw-r--r-- | net/openntpd/files/patch-src_constraint.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/openntpd/files/patch-src_constraint.c b/net/openntpd/files/patch-src_constraint.c new file mode 100644 index 000000000000..d10ba1c19ee8 --- /dev/null +++ b/net/openntpd/files/patch-src_constraint.c @@ -0,0 +1,11 @@ +--- src/constraint.c.orig 2015-03-14 21:24:11 UTC ++++ src/constraint.c +@@ -665,7 +665,7 @@ httpsdate_request(struct httpsdate *http + * or ANSI C's asctime() - the latter doesn't include + * the timezone which is required here. + */ +- if (strptime(p, "%a, %d %h %Y %T %Z", ++ if (strptime(p, "%a, %d %h %Y %T GMT", + &httpsdate->tls_tm) == NULL) { + log_warnx("unsupported date format"); + free(line); |