]> 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:39:12 +0000 (09:39 +0100)
commit633138564d611b5abeff232c89dccb1b86def449
tree714e77ccae61f6884acce38a206190ba10322c9d
parent3fa863100033e7d6d0cbb19361a52efbe097e69d
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>
(cherry picked from commit f3705dd1e711ee9f8546b841e4b18e9e9a224975)
src/openvpn/ssl.c
src/openvpn/ssl_mbedtls.h
src/openvpn/ssl_openssl.h