]> git.ipfire.org Git - thirdparty/openvpn.git/commit
CRL: use time_t instead of struct timespec to store last mtime
authorAntonio Quartulli <a@unstable.cc>
Thu, 16 Mar 2017 08:21:17 +0000 (16:21 +0800)
committerGert Doering <gert@greenie.muc.de>
Thu, 16 Mar 2017 08:27:44 +0000 (09:27 +0100)
commitf3705dd1e711ee9f8546b841e4b18e9e9a224975
tree80556be38ac6fd94679aeeaa8c446091a103dbaa
parent5ab106db7b091c6409fd0a7e43f557a7931c200f
CRL: use time_t instead of struct timespec to store last mtime

As of now, we store the last mtime for the CRL file in a timespec
object. However we store seconds only and we ignore the subsecond
field (this came into being because not all platforms have nanoseconds
precision in timespec).

Given the above, we can safely replace the timespec object with a
simple time_t.

Reported-by: Gert Doering <gert@greenie.muc.de>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20170316082117.21020-1-a@unstable.cc>
URL: http://www.mail-archive.com/search?l=mid&q=20170316082117.21020-1-a@unstable.cc
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl.c
src/openvpn/ssl_mbedtls.h
src/openvpn/ssl_openssl.h