-/* $OpenBSD: aspa.c,v 1.5 2022/10/13 04:43:32 job Exp $ */
+/* $OpenBSD: aspa.c,v 1.6 2022/11/02 10:04:41 tb Exp $ */
/*
* Copyright (c) 2022 Job Snijders <job@fastly.com>
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
warnx("%s: X509_get0_notAfter failed", fn);
goto out;
}
- if (x509_get_time(at, &p.res->expires) == -1) {
+ if (!x509_get_time(at, &p.res->expires)) {
warnx("%s: ASN1_time_parse failed", fn);
goto out;
}
-/* $OpenBSD: crl.c,v 1.16 2022/09/03 21:24:02 job Exp $ */
+/* $OpenBSD: crl.c,v 1.17 2022/11/02 10:04:41 tb Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
warnx("%s: X509_CRL_get0_lastUpdate failed", fn);
goto out;
}
- if (x509_get_time(at, &crl->issued) == -1) {
+ if (!x509_get_time(at, &crl->issued)) {
warnx("%s: ASN1_time_parse failed", fn);
goto out;
}
warnx("%s: X509_CRL_get0_nextUpdate failed", fn);
goto out;
}
- if (x509_get_time(at, &crl->expires) == -1) {
+ if (!x509_get_time(at, &crl->expires)) {
warnx("%s: ASN1_time_parse failed", fn);
goto out;
}
-/* $OpenBSD: roa.c,v 1.53 2022/10/13 04:43:32 job Exp $ */
+/* $OpenBSD: roa.c,v 1.54 2022/11/02 10:04:41 tb Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
warnx("%s: X509_get0_notAfter failed", fn);
goto out;
}
- if (x509_get_time(at, &p.res->expires) == -1) {
+ if (!x509_get_time(at, &p.res->expires)) {
warnx("%s: ASN1_time_parse failed", fn);
goto out;
}
-/* $OpenBSD: rsc.c,v 1.16 2022/10/13 04:43:32 job Exp $ */
+/* $OpenBSD: rsc.c,v 1.17 2022/11/02 10:04:41 tb Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
* Copyright (c) 2022 Job Snijders <job@fastly.com>
warnx("%s: X509_get0_notAfter failed", fn);
goto out;
}
- if (x509_get_time(at, &p.res->expires) == -1) {
+ if (!x509_get_time(at, &p.res->expires)) {
warnx("%s: ASN1_time_parse failed", fn);
goto out;
}
-/* $OpenBSD: x509.c,v 1.51 2022/10/24 10:26:59 tb Exp $ */
+/* $OpenBSD: x509.c,v 1.52 2022/11/02 10:04:41 tb Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
warnx("%s: X509_get0_notafter failed", fn);
return 0;
}
- if (x509_get_time(at, tt) == -1) {
+ if (!x509_get_time(at, tt)) {
warnx("%s: ASN1_time_parse failed", fn);
return 0;
}