This is a discussion on Re: does ASN1_UTCTIME_get() changes by local time zone settings - Openssl ; On Sat, Jan 28, 2006, Joe Gluck wrote: > Any ideas, the ASN1_cmp_time does much more than what I need, because > I will be comparing at least once a second (If I check the last time > to be ...
On Sat, Jan 28, 2006, Joe Gluck wrote:
> Any ideas, the ASN1_cmp_time does much more than what I need, because
> I will be comparing at least once a second (If I check the last time
> to be at least one second earlier.) And because they are all in my
> cache for hopefully lets say a year, why not convert it to time_t and
> just check it with > current_gmt_time ?
BTW you don't have to call that function once a second. You can pass any time
to ASN1_cmp_time(). You could for example pass a time an hour in the future and
if it indicated the time wasn't exceeded there would be no point checking it
for a further hour.
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
OpenSSL Project http://www.openssl.org
Development Mailing List email@example.com
Automated List Manager firstname.lastname@example.org