diff options
author | tb <> | 2024-03-02 09:15:03 +0000 |
---|---|---|
committer | tb <> | 2024-03-02 09:15:03 +0000 |
commit | f827b9a95a19d381c8962caf97efb82ce0d90115 (patch) | |
tree | fb8598df8f31f7f4f5be6651729acd7dc8eb74d2 /src/lib/libcrypto/crypto.h | |
parent | 583cfc2f9ea1e19f9353fca6557a7e9b59776a66 (diff) | |
download | openbsd-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
Diffstat (limited to 'src/lib/libcrypto/crypto.h')
-rw-r--r-- | src/lib/libcrypto/crypto.h | 4 |
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) | ||
530 | struct tm *OPENSSL_gmtime(const time_t *time, struct tm *out_tm); | 529 | struct tm *OPENSSL_gmtime(const time_t *time, struct tm *out_tm); |
531 | #endif | ||
532 | 530 | ||
533 | void ERR_load_CRYPTO_strings(void); | 531 | void ERR_load_CRYPTO_strings(void); |
534 | 532 | ||