[openssl-users] ASN1_TIME to time_t

Matt Caswell matt at openssl.org
Wed Sep 6 08:16:24 UTC 2017



On 06/09/17 09:12, Dmitry Belyavsky wrote:
> Hello,
> 
> Is there a way to convert ASN1_TIME to time_t or smth compatible? Quick
> googling does not show good results.

In master you can use ASN1_TIME_to_tm() which will give you a struct tm.
Not available in released versions yet though.

Matt



More information about the openssl-users mailing list