-/* $OpenBSD: mft.c,v 1.33 2021/05/09 11:25:32 tb Exp $ */
+/* $OpenBSD: mft.c,v 1.34 2021/05/11 11:32:51 claudio Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
data = ASN1_STRING_get0_data(gtime);
len = ASN1_STRING_length(gtime);
+ memset(tm, 0, sizeof(*tm));
return ASN1_time_parse(data, len, tm, V_ASN1_GENERALIZEDTIME) ==
V_ASN1_GENERALIZEDTIME;
}
-/* $OpenBSD: parser.c,v 1.9 2021/05/09 11:18:57 tb Exp $ */
+/* $OpenBSD: parser.c,v 1.10 2021/05/11 11:32:51 claudio Exp $ */
/*
* Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
err(1, "X509_CRL_get0_nextUpdate failed");
goto out;
}
+ memset(&expires_tm, 0, sizeof(expires_tm));
if (ASN1_time_parse(at->data, at->length, &expires_tm,
V_ASN1_UTCTIME) != V_ASN1_UTCTIME) {
err(1, "ASN1_time_parse failed");
err(1, "X509_get0_notafter failed");
goto out;
}
+ memset(&expires_tm, 0, sizeof(expires_tm));
if (ASN1_time_parse(at->data, at->length, &expires_tm,
V_ASN1_UTCTIME) != V_ASN1_UTCTIME) {
err(1, "ASN1_time_parse failed");
-/* $OpenBSD: roa.c,v 1.18 2021/05/06 17:03:57 job Exp $ */
+/* $OpenBSD: roa.c,v 1.19 2021/05/11 11:32:51 claudio Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
warnx("%s: X509_get0_notAfter failed", fn);
goto out;
}
+ memset(&expires_tm, 0, sizeof(expires_tm));
if (ASN1_time_parse(at->data, at->length, &expires_tm, 0) == -1) {
warnx("%s: ASN1_time_parse failed", fn);
goto out;