-/* $OpenBSD: x509_asn1.c,v 1.11 2023/04/28 15:12:51 job Exp $ */
+/* $OpenBSD: x509_asn1.c,v 1.12 2023/04/28 18:27:49 tb Exp $ */
/*
* Copyright (c) 2023 Job Snijders <job@openbsd.org>
*
{
ASN1_TIME *at;
- if ((at = ASN1_TIME_new()) == NULL)
- err(1, NULL);
if ((at = X509_gmtime_adj(NULL, t)) == NULL)
errx(1, "X509_gmtime_adj");
if (!f(*x, at))
{
ASN1_TIME *at;
- if ((at = ASN1_TIME_new()) == NULL)
- err(1, NULL);
if ((at = X509_gmtime_adj(NULL, t)) == NULL)
errx(1, "X509_gmtime_adj");
if (!f(*xc, at))