summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2024-03-02 09:15:03 +0000
committertb <>2024-03-02 09:15:03 +0000
commitf827b9a95a19d381c8962caf97efb82ce0d90115 (patch)
treefb8598df8f31f7f4f5be6651729acd7dc8eb74d2
parent583cfc2f9ea1e19f9353fca6557a7e9b59776a66 (diff)
downloadopenbsd-f827b9a95a19d381c8962caf97efb82ce0d90115.tar.gz
openbsd-f827b9a95a19d381c8962caf97efb82ce0d90115.tar.bz2
openbsd-f827b9a95a19d381c8962caf97efb82ce0d90115.zip
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
-rw-r--r--src/lib/libcrypto/Symbols.list4
-rw-r--r--src/lib/libcrypto/crypto.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list
index e21e4d5a9b..a801880ecc 100644
--- a/src/lib/libcrypto/Symbols.list
+++ b/src/lib/libcrypto/Symbols.list
@@ -1875,12 +1875,16 @@ OPENSSL_cleanup
1875OPENSSL_config 1875OPENSSL_config
1876OPENSSL_cpu_caps 1876OPENSSL_cpu_caps
1877OPENSSL_cpuid_setup 1877OPENSSL_cpuid_setup
1878OPENSSL_gmtime
1878OPENSSL_init 1879OPENSSL_init
1879OPENSSL_init_crypto 1880OPENSSL_init_crypto
1880OPENSSL_load_builtin_modules 1881OPENSSL_load_builtin_modules
1881OPENSSL_no_config 1882OPENSSL_no_config
1883OPENSSL_posix_to_tm
1882OPENSSL_strcasecmp 1884OPENSSL_strcasecmp
1883OPENSSL_strncasecmp 1885OPENSSL_strncasecmp
1886OPENSSL_timegm
1887OPENSSL_tm_to_posix
1884OPENSSL_uni2asc 1888OPENSSL_uni2asc
1885OTHERNAME_cmp 1889OTHERNAME_cmp
1886OTHERNAME_free 1890OTHERNAME_free
diff --git a/src/lib/libcrypto/crypto.h b/src/lib/libcrypto/crypto.h
index 47e7eff37c..f37ec3106d 100644
--- a/src/lib/libcrypto/crypto.h
+++ b/src/lib/libcrypto/crypto.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: crypto.h,v 1.64 2024/02/18 16:28:37 tb Exp $ */ 1/* $OpenBSD: crypto.h,v 1.65 2024/03/02 09:15:03 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -526,9 +526,7 @@ void OPENSSL_cleanup(void);
526 * OpenSSL helpfully put OPENSSL_gmtime() here because all other time related 526 * OpenSSL helpfully put OPENSSL_gmtime() here because all other time related
527 * functions are in asn1.h. 527 * functions are in asn1.h.
528 */ 528 */
529#if defined(LIBRESSL_INTERNAL) || defined(LIBRESSL_NEXT_API)
530struct tm *OPENSSL_gmtime(const time_t *time, struct tm *out_tm); 529struct tm *OPENSSL_gmtime(const time_t *time, struct tm *out_tm);
531#endif
532 530
533void ERR_load_CRYPTO_strings(void); 531void ERR_load_CRYPTO_strings(void);
534 532