Remove Warnings

This commit is contained in:
Zhi Guan
2022-12-27 14:41:58 +08:00
parent 7aec17e140
commit 8d6ab311f0
2 changed files with 0 additions and 3 deletions

View File

@@ -929,7 +929,6 @@ int asn1_time_to_str(int utc_time, time_t timestamp, char *str)
int asn1_utc_time_to_der_ex(int tag, time_t a, uint8_t **out, size_t *outlen)
{
struct tm tm_val;
char buf[ASN1_UTC_TIME_LEN + 1] = {0};
int utc_time = 1;

View File

@@ -95,7 +95,6 @@ int x509_explicit_version_from_der(int index, int *version, const uint8_t **in,
int x509_time_to_der(time_t tv, uint8_t **out, size_t *outlen)
{
int ret;
struct tm tm_val;
static time_t utc_time_max = 0;
if (!utc_time_max) {
@@ -137,7 +136,6 @@ int x509_time_from_der(time_t *tv, const uint8_t **in, size_t *inlen)
int x509_validity_add_days(time_t *not_after, time_t not_before, int days)
{
struct tm tm_val;
if (days < X509_VALIDITY_MIN_DAYS
|| days > X509_VALIDITY_MAX_DAYS) {
error_print();