Re: Error: CERTTIME_DATETEST must be > MIN_TIME_VALUE

Jeffrey Walton <[email protected]> Thu, 25 Mar 2021 20:42:38 -0400
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <CAH8yC8=UbJf2Zh9N7_Ok8DHgyLdB7QeZk5aEGEnLVNGdv4LK3w@mail.gmail.com>
On Wed, Mar 24, 2021 at 8:33 PM Peter Gutmann <[email protected]> wrote:
>
> Jeffrey Walton <[email protected]> writes:
>
> >testlib is having an issue at:
> >
> >Testing CA certificate creation/export...
> >Error: CERTTIME_DATETEST must be > MIN_TIME_VALUE.
>
> It looks like you've got a new enough version of gcc on there that
> MIN_TIME_VALUE can be evaluated from the current time rather than a static
> value, so it's automatically newer than the static CERTTIME_DATETEST. What you
> can do at the start of the file, just after CERTTIME_DATETEST is defined, is:
>
> #undef CERTTIME_DATETEST
> #define CERTTIME_DATETEST       MIN_TIME_VALUE + 1
> #endif

Thanks Doc.

Where does MIN_TIME_VALUE come from?

I see it referenced in test/certs.c, but I don't see it defined
anywhere. And a search on the web is not turning up useful hits.

Jeff

_______________________________________________
Cryptlib mailing list
[email protected] via Mail: [email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.