From f3cff8b6438de90dfb152c94ee691fd4b59b0890 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 18 Feb 2024 16:28:38 +0000 Subject: Add posix_time.h from BoringSSL This is prepares to expose some internal API as OPENSSL_tm_to_posix() and OPENSSL_posix_to_tm(). They will be used in libtls and ocspcheck(8) to get rid of the portability nightmare that is timegm(). Also fix the location of OPENSSL_gmtime() and OPENSSL_timegm() (this API is not yet exposed). The former is from OpenSSL and surprisingly lives in crypto.h, not asn1.h, and the latter is BoringSSL API and lives in the new posix_time.h. Initial diff from beck, this pulls in further upstream work after review feedback. ok jsing --- src/lib/libcrypto/Symbols.namespace | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/libcrypto/Symbols.namespace') diff --git a/src/lib/libcrypto/Symbols.namespace b/src/lib/libcrypto/Symbols.namespace index 08f070e79c..62d6b5a3ad 100644 --- a/src/lib/libcrypto/Symbols.namespace +++ b/src/lib/libcrypto/Symbols.namespace @@ -2645,3 +2645,7 @@ _libre_i2d_DHparams _libre_DHparams_print_fp _libre_DHparams_print _libre_ERR_load_DH_strings +_libre_OPENSSL_gmtime +_libre_OPENSSL_timegm +_libre_OPENSSL_posix_to_tm +_libre_OPENSSL_tm_to_posix -- cgit v1.2.3-55-g6feb