parse_gentime: use timegm() to generate time since the epoch

The timegm() function is non-standard but widely available.
Provide an implementation for those systems that lack it.
Bug #1006
This commit is contained in:
Todd C. Miller
2021-10-31 09:27:34 -06:00
parent b506497fe4
commit 4eebd53bce
10 changed files with 98 additions and 57 deletions

View File

@@ -411,9 +411,6 @@ size_t base64_encode(const unsigned char *in, size_t in_len, char *out, size_t o
/* timeout.c */
int parse_timeout(const char *timestr);
/* gmtoff.c */
long get_gmtoff(time_t *clock);
/* gentime.c */
time_t parse_gentime(const char *expstr);