Changed OPENSSL_gmtime so macOS uses threadsafe gmtime_r instead of gmtime.
authorJonathan Scalise <scalisejonathan@gmail.com>
Fri, 2 Jun 2017 20:47:03 +0000 (16:47 -0400)
committerRichard Levitte <levitte@openssl.org>
Wed, 24 Jan 2018 15:23:20 +0000 (16:23 +0100)
commit8552d91856895960d00343972613ce5c296864b7
tree13e48ba1eb7cb104fd8fdba6b7e2c9417ff4d3bf
parent874893375c023c2b394887cfb54d52837a29f7c5
Changed OPENSSL_gmtime so macOS uses threadsafe gmtime_r instead of gmtime.

Updated uses of gmtime to now call OPENSSL_gmtime instead.

Used similar preprocessor logic to make sure localtime_r is called instead
of localtime when applicable.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3609)
crypto/mem_dbg.c
crypto/o_time.c
crypto/ts/ts_rsp_sign.c
ssl/kssl.c