-/* $OpenBSD: x509_asn1.c,v 1.4 2023/04/26 11:00:49 job Exp $ */
+/* $OpenBSD: x509_asn1.c,v 1.5 2023/04/26 11:04:12 job Exp $ */
/*
* Copyright (c) 2023 Job Snijders <job@openbsd.org>
*
err(1, NULL);
if (!ASN1_INTEGER_set(ai, i))
errx(1, "ASN1_INTEGER_set");
- if (!(*f)(*x, ai))
+ if (!f(*x, ai))
err(1, NULL);
ASN1_INTEGER_free(ai);
err(1, NULL);
if (!X509_NAME_add_entry_by_txt(xn, "C", MBSTRING_ASC, n, -1, -1, 0))
errx(1, "X509_NAME_add_entry_by_txt");
- if (!(*f)(*x, xn))
+ if (!f(*x, xn))
err(1, NULL);
X509_NAME_free(xn);
err(1, NULL);
if ((at = X509_gmtime_adj(NULL, t)) == NULL)
errx(1, "X509_gmtime_adj");
- if (!(*f)(*x, at))
+ if (!f(*x, at))
err(1, NULL);
ASN1_TIME_free(at);