CVSROOT:        /cvs
Module name:    src
Changes by:     t...@cvs.openbsd.org    2023/11/13 03:33:00

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

Log message:
Eliminate the timegm(3) dependency in libcrypto

timegm(3) is not available on some operating systems we support in
portable. We currently use musl's implementation, for which gcc-13
decided to emit warnings (which seem incorrect in general and are
irrelevant in this case anyway). Instead of patching this up and
diverge from upstream, we can avoid reports about compiler warnings
by simply not depending on this function.

Rework the caching of notBefore and notAfter by replacing timegm(3)
with asn1_time_tm_to_time_t(3). Also make this API properly error
checkable since at the time x509v3_cache_extensions(3) is called,
nothing is known about the cert, in particular not whether it isn't
malformed one way or the other.

suggested by and ok beck

Reply via email to