summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/crypto.h
diff options
context:
space:
mode:
authortb <>2024-03-02 09:15:03 +0000
committertb <>2024-03-02 09:15:03 +0000
commit19ff5a07b9eda695a529279cb69d7708907ffac2 (patch)
treefb8598df8f31f7f4f5be6651729acd7dc8eb74d2 /src/lib/libcrypto/crypto.h
parent06d94e18edc1c5eb3f2ab9f2d9c1a6f2d1f72607 (diff)
downloadopenbsd-19ff5a07b9eda695a529279cb69d7708907ffac2.tar.gz
openbsd-19ff5a07b9eda695a529279cb69d7708907ffac2.tar.bz2
openbsd-19ff5a07b9eda695a529279cb69d7708907ffac2.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
Diffstat (limited to 'src/lib/libcrypto/crypto.h')
-rw-r--r--src/lib/libcrypto/crypto.h4
1 files changed, 1 insertions, 3 deletions
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