From a3af57696c6ce5ba2dae769a822926d288a2e3b8 Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 2 Mar 2024 09:15:03 +0000 Subject: [PATCH] Expose OPENSSL_{gmtime,posix_to_tm,timegm,tm_to_posix}() Apart from OPENSSL_gmtime(), which is OpenSSL API, this is BoringSSL's interface to deal with the time related portability and code mess. ok jsing --- lib/libcrypto/Symbols.list | 4 ++++ lib/libcrypto/crypto.h | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/libcrypto/Symbols.list b/lib/libcrypto/Symbols.list index e21e4d5a9b0..a801880ecc5 100644 --- a/lib/libcrypto/Symbols.list +++ b/lib/libcrypto/Symbols.list @@ -1875,12 +1875,16 @@ OPENSSL_cleanup OPENSSL_config OPENSSL_cpu_caps OPENSSL_cpuid_setup +OPENSSL_gmtime OPENSSL_init OPENSSL_init_crypto OPENSSL_load_builtin_modules OPENSSL_no_config +OPENSSL_posix_to_tm OPENSSL_strcasecmp OPENSSL_strncasecmp +OPENSSL_timegm +OPENSSL_tm_to_posix OPENSSL_uni2asc OTHERNAME_cmp OTHERNAME_free diff --git a/lib/libcrypto/crypto.h b/lib/libcrypto/crypto.h index 47e7eff37cc..f37ec3106df 100644 --- a/lib/libcrypto/crypto.h +++ b/lib/libcrypto/crypto.h @@ -1,4 +1,4 @@ -/* $OpenBSD: crypto.h,v 1.64 2024/02/18 16:28:37 tb Exp $ */ +/* $OpenBSD: crypto.h,v 1.65 2024/03/02 09:15:03 tb Exp $ */ /* ==================================================================== * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. * @@ -526,9 +526,7 @@ void OPENSSL_cleanup(void); * OpenSSL helpfully put OPENSSL_gmtime() here because all other time related * functions are in asn1.h. */ -#if defined(LIBRESSL_INTERNAL) || defined(LIBRESSL_NEXT_API) struct tm *OPENSSL_gmtime(const time_t *time, struct tm *out_tm); -#endif void ERR_load_CRYPTO_strings(void); -- 2.20.1