Replace the old OpenSSL julian date stuff with BoringSSL's
authorbeck <beck@openbsd.org>
Tue, 8 Nov 2022 12:56:00 +0000 (12:56 +0000)
committerbeck <beck@openbsd.org>
Tue, 8 Nov 2022 12:56:00 +0000 (12:56 +0000)
commit9b17614694afa087895f4d653b88b3737554493f
tree91e5b503840a483c35c90b5dc9c792cc67664b3f
parent9224c806ef00cf680c6bf0c48a9203b91f8039d5
Replace the old OpenSSL julian date stuff with BoringSSL's

OpenSSL dealt with time conversion using a classical julian
day scheme. BoringSSL got rid of it and uses only a julian
style calculation for seconds since the POSIX time epoch.

This changes libressl to use the seconds calculation exculusively
instead of a mix of the julian day based conversions and the
system time conversions to and from time_t to tm.

ok tb@ jsing@
lib/libcrypto/Makefile
lib/libcrypto/asn1/a_time.c
lib/libcrypto/asn1/a_time_posix.c [new file with mode: 0644]
lib/libcrypto/asn1/a_time_tm.c
lib/libcrypto/asn1/asn1_locl.h
lib/libcrypto/o_time.c [deleted file]
lib/libcrypto/o_time.h [deleted file]