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