CVSROOT:        /cvs
Module name:    src
Changes by:     b...@cvs.openbsd.org    2024/04/08 17:46:21

Modified files:
        lib/libcrypto/x509: x509_local.h x509_purp.c x509_verify.c 
                            x509_vfy.c 

Log message:
Remove notBefore and notAfter cacheing.

This cache was added because our time conversion used timegm()
and gmtime() which aren't very cheap. These calls were noticably
expensive when profiling things like rpki-client which do many
X.509 validations.

Now that we convert times using julien seconds from the unix
epoch, BoringSSL style, instead of a julien days from a
Byzantine date, we no longer use timegm() and gmtime().

Since the julien seconds calculaitons are cheap for conversion,
we don't need to bother caching this, it doesn't have a noticable
performance impact.

While we are at this correct a bug where
x509_verify_asn1_time_to_time_t was not NULL safe.

Tested for performance regressions by tb@ and job@

ok tb@ job@

Reply via email to