diff options
author | Peter (pir) Radcliffe <pir-gitweb.com@pir.net> | 2015-11-24 03:03:41 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2016-11-07 21:42:40 (GMT) |
commit | a3a78795b2951777d2586abc2ea9ef40ca4f4399 (patch) | |
tree | 4783ca87388d7be860126be9aabac4b05b537ce5 /gl/stripslash.c | |
parent | 7276ce77c7f1dc682b6ac0b58d78445c6bb814bf (diff) | |
download | monitoring-plugins-a3a78795b2951777d2586abc2ea9ef40ca4f4399.tar.gz |
Use GMT timezone in SSL certs
SSL certs are required to use times in GMT per
https://www.ietf.org/rfc/rfc5280.txt but the mktime() here assumes the
current timezone.
Fix the time_t conversion to be done assuming GMT with timegm() and
only do it once rather than twice.
Display the expiry date and time with ISO format years and give an
offset from GMT and a timezone to be very clear about exactly what time
is being displayed. Time given is correct and now in the machine’s
timezone.
Diffstat (limited to 'gl/stripslash.c')
0 files changed, 0 insertions, 0 deletions