summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2022-11-22 21:23:16 +0000
committertb <>2022-11-22 21:23:16 +0000
commite1c308e7ce8fba992e4048924843cd615a00ee3d (patch)
tree77db18a039110bdc4ffc4e8b3f35a2b7b6d642ed
parente82337c4e3a16abb7c607155fe9374f9b7a224ff (diff)
downloadopenbsd-e1c308e7ce8fba992e4048924843cd615a00ee3d.tar.gz
openbsd-e1c308e7ce8fba992e4048924843cd615a00ee3d.tar.bz2
openbsd-e1c308e7ce8fba992e4048924843cd615a00ee3d.zip
Rename last OPENSSL_gmtime() to asn1_time_time_t_to_tm()
This rename was done before commit, but one instance was missed since it was hidden behind #ifdef SMALL_TIME_T. Spotted by Android CI.
-rw-r--r--src/lib/libcrypto/asn1/a_time_tm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/a_time_tm.c b/src/lib/libcrypto/asn1/a_time_tm.c
index 2ae8430a0d..459f4a27e0 100644
--- a/src/lib/libcrypto/asn1/a_time_tm.c
+++ b/src/lib/libcrypto/asn1/a_time_tm.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: a_time_tm.c,v 1.25 2022/11/08 12:56:00 beck Exp $ */ 1/* $OpenBSD: a_time_tm.c,v 1.26 2022/11/22 21:23:16 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2015 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2015 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -68,7 +68,7 @@ ASN1_time_tm_clamp_notafter(struct tm *tm)
68 struct tm broken_os_epoch_tm; 68 struct tm broken_os_epoch_tm;
69 time_t broken_os_epoch_time = INT_MAX; 69 time_t broken_os_epoch_time = INT_MAX;
70 70
71 if (!OPENSSL_gmtime(&broken_os_epoch_time, &broken_os_epoch_tm)) 71 if (!asn1_time_time_t_to_tm(&broken_os_epoch_time, &broken_os_epoch_tm))
72 return 0; 72 return 0;
73 73
74 if (ASN1_time_tm_cmp(tm, &broken_os_epoch_tm) == 1) 74 if (ASN1_time_tm_cmp(tm, &broken_os_epoch_tm) == 1)