-/* $OpenBSD: crl.c,v 1.30 2023/12/10 14:18:23 job Exp $ */
+/* $OpenBSD: crl.c,v 1.31 2024/01/18 14:34:26 job 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->lastupdate)) {
+ if (!x509_get_time(at, &crl->thisupdate)) {
warnx("%s: ASN1_TIME_to_tm failed", fn);
goto out;
}
-/* $OpenBSD: extern.h,v 1.198 2024/01/07 09:48:29 tb Exp $ */
+/* $OpenBSD: extern.h,v 1.199 2024/01/18 14:34:26 job Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
char *aki;
char *number;
X509_CRL *x509_crl;
- time_t lastupdate; /* do not use before */
+ time_t thisupdate; /* do not use before */
time_t nextupdate; /* do not use after */
};
/*
-/* $OpenBSD: parser.c,v 1.107 2024/01/08 19:46:19 tb Exp $ */
+/* $OpenBSD: parser.c,v 1.108 2024/01/18 14:34:26 job Exp $ */
/*
* Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
}
if (*mp != NULL) {
- *crlmtime = crl->lastupdate;
+ *crlmtime = crl->thisupdate;
if (!crl_insert(&crlt, crl)) {
warnx("%s: duplicate AKI %s", file, crl->aki);
crl_free(crl);
-/* $OpenBSD: print.c,v 1.44 2023/11/16 11:18:47 tb Exp $ */
+/* $OpenBSD: print.c,v 1.45 2024/01/18 14:34:26 job Exp $ */
/*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
free(issuer);
if (outformats & FORMAT_JSON) {
- json_do_int("valid_since", p->lastupdate);
+ json_do_int("valid_since", p->thisupdate);
json_do_int("valid_until", p->nextupdate);
json_do_array("revoked_certs");
} else {
- printf("CRL last update: %s\n",
- time2str(p->lastupdate));
+ printf("CRL this update: %s\n",
+ time2str(p->thisupdate));
printf("CRL next update: %s\n",
time2str(p->nextupdate));
printf("Revoked Certificates:\n");