On Tue, Jun 08, 2010, Christian Hohnstaedt wrote: > On Mon, Jun 07, 2010 at 08:02:22PM -0500, Dallas Clement wrote: > > Hi All, > > > > I am trying to crack open a certificate and print out the start and > > expire dates to a debug log message. > > Just for printing I suggest: > > int ASN1_TIME_print(BIO *bp, const ASN1_TIME *tm) >
Yes that would work fine. There isn't a function to convert to time_t at present, the actual year range of ASN1_TIME (0 to 9999) far exceeds that of time_t (at least the more common 32 bit version). Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org