Re: time_t from ASN1_TIME
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
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 ;