On 14/04/10 1:05 PM, Jerry Wang wrote: > Hi, > > I was just wondering what is the best way for converting type > ASN1_UTCTIME* to type char* or string in C++? > Probably the best way is to convert it to a time_t, and then use your normal platform functions to convert that to a string. This has the added advantage of being useful for comparisons and other things.
There are a few examples of converting an ASN1_TIME struct to a time_t in the openssl sources, so you can use that. Have fun! Patrick. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org