summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ts/ts_rsp_sign.c
diff options
context:
space:
mode:
authorbeck <>2024-03-24 11:30:12 +0000
committerbeck <>2024-03-24 11:30:12 +0000
commit0f167a53fa3e19b7e6bb0620e16c6d11f07f10ca (patch)
treeaf867a635253990b4a88720849f04a8a6bb5d8b3 /src/lib/libcrypto/ts/ts_rsp_sign.c
parenta1fcde383f7ab72e64fc36b664d4358d5915f2c1 (diff)
downloadopenbsd-0f167a53fa3e19b7e6bb0620e16c6d11f07f10ca.tar.gz
openbsd-0f167a53fa3e19b7e6bb0620e16c6d11f07f10ca.tar.bz2
openbsd-0f167a53fa3e19b7e6bb0620e16c6d11f07f10ca.zip
Convert libressl to use the BoringSSL style time conversions
This gets rid of our last uses of timegm and gmtime in the library and things that ship with it. It includes a bit of refactoring in ocsp_cl.c to remove some obvious ugly. ok tb@
Diffstat (limited to 'src/lib/libcrypto/ts/ts_rsp_sign.c')
-rw-r--r--src/lib/libcrypto/ts/ts_rsp_sign.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ts/ts_rsp_sign.c b/src/lib/libcrypto/ts/ts_rsp_sign.c
index 3013cffbc5..8eb687aab1 100644
--- a/src/lib/libcrypto/ts/ts_rsp_sign.c
+++ b/src/lib/libcrypto/ts/ts_rsp_sign.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ts_rsp_sign.c,v 1.32 2023/08/22 08:09:36 tb Exp $ */ 1/* $OpenBSD: ts_rsp_sign.c,v 1.33 2024/03/24 11:30:12 beck Exp $ */
2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL 2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL
3 * project 2002. 3 * project 2002.
4 */ 4 */
@@ -999,7 +999,7 @@ TS_RESP_set_genTime_with_precision(ASN1_GENERALIZEDTIME *asn1_time,
999 if (precision > TS_MAX_CLOCK_PRECISION_DIGITS) 999 if (precision > TS_MAX_CLOCK_PRECISION_DIGITS)
1000 goto err; 1000 goto err;
1001 1001
1002 if (!(tm = gmtime(&sec))) 1002 if (OPENSSL_gmtime(&sec, tm) == NULL)
1003 goto err; 1003 goto err;
1004 1004
1005 /* 1005 /*