time_t (such as that returned by gettime() and friends) are always
supposed to be in GMT, unaffected by timezone settings. That's
something that a lot of people end up misconfiguring on their systems.

On 1/27/06, Joe Gluck wrote:
> Hi all,
>
> I have a certificate with dates represented as GMT time.
>
> I am trying to get those times as GMT in a time_t format, is this ok?
>
> ASN1_TIME * not_after;
> time_t expire;
>
> not_after =3D X509_get_notAfter(cert); // cert is a X509 object
> expire =3D ASN1_UTCTIME_get(not_after);
>
> will the "expire" hold the expiration time in GMT?
>
> BTW the ASN1_UTCTIME_get() is in a "#ifdef 0" does any one know why?
>
> Thanks
>
> Joe
> __________________________________________________ ____________________
> OpenSSL Project http://www.openssl.org
> Development Mailing List openssl-dev@openssl.org
> Automated List Manager majordomo@openssl.org
>

__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majordomo@openssl.org