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 = X509_get_notAfter(cert); // cert is a X509 object
expire = 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                           [EMAIL PROTECTED]

Reply via email to