From ef89e2e6376f29a960430ec6021e0f7a95b87f79 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Fri, 6 May 2022 08:18:14 -0600 Subject: [PATCH] Rename utc_str[_buf] -> time_str[_buf] (semantic change) --- src/ssl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index c1d02bdb6..0635a8662 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -45310,8 +45310,8 @@ WOLFSSL_ASN1_TIME* wolfSSL_ASN1_TIME_adj(WOLFSSL_ASN1_TIME *s, time_t t, const time_t sec_per_day = 24*60*60; time_t t_adj = 0; time_t offset_day_sec = 0; - char utc_str_buf[MAX_TIME_STRING_SZ] = {0}; - char* utc_str = utc_str_buf; + char time_str_buf[MAX_TIME_STRING_SZ] = {0}; + char* time_str = time_str_buf; int time_get; WOLFSSL_ENTER("wolfSSL_ASN1_TIME_adj"); @@ -45328,14 +45328,14 @@ WOLFSSL_ASN1_TIME* wolfSSL_ASN1_TIME_adj(WOLFSSL_ASN1_TIME *s, time_t t, t_adj = t + offset_day_sec + offset_sec; /* Get UTC Time */ - time_get = GetUnformattedTimeString(&t_adj, (byte*) utc_str, - sizeof(utc_str_buf)); + time_get = GetUnformattedTimeString(&t_adj, (byte*) time_str, + sizeof(time_str_buf)); if (time_get <= 0) { wolfSSL_ASN1_TIME_free(s); return NULL; } - if (wolfSSL_ASN1_TIME_set_string(s, utc_str) != WOLFSSL_SUCCESS) { + if (wolfSSL_ASN1_TIME_set_string(s, time_str) != WOLFSSL_SUCCESS) { wolfSSL_ASN1_TIME_free(s); return NULL; }