hx509: Build libhx509template and hxtool with it

This commit is contained in:
Nicolas Williams
2021-07-12 17:01:06 -05:00
parent df4b09f8af
commit b8112ac562
2 changed files with 21 additions and 11 deletions

View File

@@ -754,7 +754,6 @@ print_f(hx509_context hxcontext, void *ctx, hx509_cert cert)
static int HX509_LIB_CALL
print_fjson(hx509_context hxcontext, void *ctx, hx509_cert cert)
{
#ifdef ASN1_PRINTING_WORKS
const Certificate *c = NULL;
char *json = NULL;
@@ -767,10 +766,6 @@ print_fjson(hx509_context hxcontext, void *ctx, hx509_cert cert)
hx509_err(context, 1, errno, "Could not format certificate as JSON");
free(json);
return 0;
#else
err(1, "JSON printing of certificates not supported; try enabling or "
"not disabling ASN.1 templating in Heimdal build configuration");
#endif
}