Re: time_t from ASN1_TIME

2003-11-02 Thread Jay Case
Hey All, Messy hack, but here's what I arrived at. Please yell out if you smell anything too foul; //== // Based on X509_cmp_time() for intitial buffer hacking. //=

Re: time_t from ASN1_TIME

2003-10-31 Thread Peter Sylvester
The code below is for GENERALIZED_TIME, and doesn't handle seconds yet. But I think you get the idea. (adopted from the perl). time_t ASN1_GENERALIZEDTIME_2ilb(BIO *bp, ASN1_GENERALIZEDTIME *tm, int showgmt) { unsigned char strtime[30] ; time_t test = (time_t) 0; int i ;

time_t from ASN1_TIME

2003-10-31 Thread Jay Case
By chance, does anyone have a utility or example to get a time_t value from an ASN1_TIME? Something like; time_t getTimeFromASN1(const ASN1_TIME *); Thanks - Jay __ OpenSSL Project http://www.open