-/* $Id: test-cert.c,v 1.15 2021/10/26 16:59:54 claudio Exp $ */
+/* $Id: test-cert.c,v 1.16 2022/01/18 16:41:00 claudio Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
main(int argc, char *argv[])
{
int c, i, verb = 0, ta = 0;
- X509 *xp = NULL;
struct cert *p;
ERR_load_crypto_strings();
break;
buf = load_file(cert_path, &len);
- p = ta_parse(&xp, cert_path, buf, len,
+ p = ta_parse(cert_path, buf, len,
tal->pkey, tal->pkeysz);
free(buf);
tal_free(tal);
if (verb)
cert_print(p);
cert_free(p);
- X509_free(xp);
}
} else {
for (i = 0; i < argc; i++) {
size_t len;
buf = load_file(argv[i], &len);
- p = cert_parse(&xp, argv[i], buf, len);
+ p = cert_parse(argv[i], buf, len);
if (p == NULL)
break;
if (verb)
cert_print(p);
free(buf);
cert_free(p);
- X509_free(xp);
}
}