From 1f3c80ce8efa07a9078c3063ac5b07fd484098da Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 22 Nov 2022 21:23:16 +0000 Subject: [PATCH] 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. --- lib/libcrypto/asn1/a_time_tm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libcrypto/asn1/a_time_tm.c b/lib/libcrypto/asn1/a_time_tm.c index 2ae8430a0dc..459f4a27e06 100644 --- a/lib/libcrypto/asn1/a_time_tm.c +++ b/lib/libcrypto/asn1/a_time_tm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: a_time_tm.c,v 1.25 2022/11/08 12:56:00 beck Exp $ */ +/* $OpenBSD: a_time_tm.c,v 1.26 2022/11/22 21:23:16 tb Exp $ */ /* * Copyright (c) 2015 Bob Beck * @@ -68,7 +68,7 @@ ASN1_time_tm_clamp_notafter(struct tm *tm) struct tm broken_os_epoch_tm; time_t broken_os_epoch_time = INT_MAX; - if (!OPENSSL_gmtime(&broken_os_epoch_time, &broken_os_epoch_tm)) + if (!asn1_time_time_t_to_tm(&broken_os_epoch_time, &broken_os_epoch_tm)) return 0; if (ASN1_time_tm_cmp(tm, &broken_os_epoch_tm) == 1) -- 2.20.1