summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/rpki-client/test-gbr.c
diff options
context:
space:
mode:
Diffstat (limited to 'regress/usr.sbin/rpki-client/test-gbr.c')
-rw-r--r--regress/usr.sbin/rpki-client/test-gbr.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/regress/usr.sbin/rpki-client/test-gbr.c b/regress/usr.sbin/rpki-client/test-gbr.c
index 167b9713249..cd72697c000 100644
--- a/regress/usr.sbin/rpki-client/test-gbr.c
+++ b/regress/usr.sbin/rpki-client/test-gbr.c
@@ -1,4 +1,4 @@
-/* $Id: test-gbr.c,v 1.9 2022/05/31 21:35:46 tb Exp $ */
+/* $Id: test-gbr.c,v 1.10 2022/08/26 06:28:41 tb Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -37,7 +37,6 @@ int
main(int argc, char *argv[])
{
int c, i, ppem = 0, verb = 0;
- BIO *bio_out = NULL;
X509 *xp = NULL;
struct gbr *p;
unsigned char *buf;
@@ -55,8 +54,6 @@ main(int argc, char *argv[])
if (ppem)
break;
ppem = 1;
- if ((bio_out = BIO_new_fp(stdout, BIO_NOCLOSE)) == NULL)
- errx(1, "BIO_new_fp");
break;
case 'v':
verb++;
@@ -80,7 +77,7 @@ main(int argc, char *argv[])
if (verb)
gbr_print(xp, p);
if (ppem) {
- if (!PEM_write_bio_X509(bio_out, xp))
+ if (!PEM_write_X509(stdout, xp))
errx(1,
"PEM_write_bio_X509: unable to write cert");
}
@@ -89,7 +86,6 @@ main(int argc, char *argv[])
X509_free(xp);
}
- BIO_free(bio_out);
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
ERR_free_strings();