diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2024-04-08 23:46:22 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2024-04-08 23:46:22 +0000 |
commit | e0f210f2fc0748b8c2020f39449d156a43a26480 (patch) | |
tree | 1180aa02a2a93ac7d2e6b7c67cba05f6a9e5cf32 /lib/csu | |
parent | 414c5a12acc3c2129e67b8ddcd6a6730b0959dec (diff) |
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@
Diffstat (limited to 'lib/csu')
0 files changed, 0 insertions, 0 deletions