Re: [openssl-users] ASN1_TIME to time_t

2017-09-06 Thread Dr. Stephen Henson
On Wed, Sep 06, 2017, Michael Wojcik wrote: > > From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf > > Of Dr. Stephen Henson > > Sent: Wednesday, September 06, 2017 10:26 > > > > No but there is a a round about way of achieving the same result. The > > ASN1_TIME_diff() funct

Re: [openssl-users] ASN1_TIME to time_t

2017-09-06 Thread Michael Wojcik
> From: openssl-users [mailto:openssl-users-boun...@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 mkt

Re: [openssl-users] ASN1_TIME to time_t

2017-09-06 Thread Michael Wojcik
> From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf > Of Dr. Stephen Henson > Sent: Wednesday, September 06, 2017 10:26 > > No but there is a a round about way of achieving the same result. The > ASN1_TIME_diff() function will determine the difference between two > ASN1_TIME

Re: [openssl-users] ASN1_TIME to time_t

2017-09-06 Thread Dr. Stephen Henson
On Wed, Sep 06, 2017, Dmitry Belyavsky wrote: > Dear Matt, > > On Wed, Sep 6, 2017 at 11:16 AM, Matt Caswell wrote: > > > > > > > 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 s

Re: [openssl-users] ASN1_TIME to time_t

2017-09-06 Thread Jakob Bohm
On 06/09/2017 14:17, Michael Wojcik wrote: From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf Of Dmitry Belyavsky Sent: Wednesday, September 06, 2017 04:12 Is there a way to convert ASN1_TIME to time_t or smth compatible? Quick googling does not show good results. We just

Re: [openssl-users] ASN1_TIME to time_t

2017-09-06 Thread Michael Wojcik
> From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf Of > Dmitry Belyavsky > Sent: Wednesday, September 06, 2017 04:12 > Is there a way to convert ASN1_TIME to time_t or smth compatible? Quick > googling does not show good results. We just implemented it ourselves, by pars

Re: [openssl-users] ASN1_TIME to time_t

2017-09-06 Thread Matt Caswell
On 06/09/17 09:20, Dmitry Belyavsky wrote: > Dear Matt, > > On Wed, Sep 6, 2017 at 11:16 AM, Matt Caswell > wrote: > > > > On 06/09/17 09:12, Dmitry Belyavsky wrote: > > Hello, > > > > Is there a way to convert ASN1_TIME to time_t or smth compatible?

Re: [openssl-users] ASN1_TIME to time_t

2017-09-06 Thread Dmitry Belyavsky
Dear Matt, On Wed, Sep 6, 2017 at 11:16 AM, Matt Caswell wrote: > > > 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 w

Re: [openssl-users] ASN1_TIME to time_t

2017-09-06 Thread Matt Caswell
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 -

[openssl-users] ASN1_TIME to time_t

2017-09-06 Thread Dmitry Belyavsky
Hello, Is there a way to convert ASN1_TIME to time_t or smth compatible? Quick googling does not show good results. Thank you! -- SY, Dmitry Belyavsky -- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users