[openssl-users] ASN1_TIME to time_t

Michael Wojcik Michael.Wojcik at microfocus.com
Wed Sep 6 15:00:24 UTC 2017


> From: openssl-users [mailto:openssl-users-bounces at openssl.org] On Behalf
> Of Jakob Bohm
> Sent: Wednesday, September 06, 2017 09:27
> 
> On 06/09/2017 14:17, Michael Wojcik wrote:
> 
> > struct tm is local time, so you need to adjust for timezone.
>
> It's not as much struct tm, as it is the mktime() API.

Of course you're right.

>  If available, try the BSD/GNU API timegm(), although that is
> officially "obsolete".

We need much wider platform compatibility. It's not a big deal, though.

-- 
Michael Wojcik 
Distinguished Engineer, Micro Focus 





More information about the openssl-users mailing list