-/* $OpenBSD: filemode.c,v 1.11 2022/08/25 17:31:26 job Exp $ */
+/* $OpenBSD: filemode.c,v 1.12 2022/08/25 18:12:05 job Exp $ */
/*
* Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
#include "extern.h"
-extern int printpem;
extern int verbose;
static X509_STORE_CTX *ctx;
errx(1, "X509_print_fp");
}
- if (printpem) {
+ if (verbose > 1) {
if (!PEM_write_X509(stdout, x509))
errx(1, "PEM_write_X509");
}
-/* $OpenBSD: main.c,v 1.210 2022/08/25 17:31:26 job Exp $ */
+/* $OpenBSD: main.c,v 1.211 2022/08/25 18:12:05 job Exp $ */
/*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
int verbose;
int noop;
int filemode;
-int printpem;
int rrdpon = 1;
int repo_timeout;
"proc exec unveil", NULL) == -1)
err(1, "pledge");
- while ((c = getopt(argc, argv, "b:Bcd:e:fjnoprRs:S:t:T:vV")) != -1)
+ while ((c = getopt(argc, argv, "b:Bcd:e:fjnorRs:S:t:T:vV")) != -1)
switch (c) {
case 'b':
bind_addr = optarg;
case 'o':
outformats |= FORMAT_OPENBGPD;
break;
- case 'p':
- printpem = 1;
- break;
case 'R':
rrdpon = 0;
break;
" [-e rsync_prog]\n"
" [-S skiplist] [-s timeout] [-T table] [-t tal]"
" [outputdir]\n"
- " rpki-client [-Vv] [-d cachedir] [-j | -p] [-t tal] -f file"
- " ...\n");
+ " rpki-client [-Vv] [-d cachedir] [-j] [-t tal] -f file ..."
+ "\n");
return 1;
}
-.\" $OpenBSD: rpki-client.8,v 1.69 2022/08/25 17:31:26 job Exp $
+.\" $OpenBSD: rpki-client.8,v 1.70 2022/08/25 18:12:05 job Exp $
.\"
.\" Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
.Nm
.Op Fl Vv
.Op Fl d Ar cachedir
-.Op Fl j | p
+.Op Fl j
.Op Fl t Ar tal
.Fl f
.Ar
and
.Fl j
options are not specified this is the default.
-.It Fl p
-Print the encapsulated X.509 certificate in PEM format.
.It Fl R
Synchronize via RSYNC only.
.It Fl r
.It Fl V
Show the version and exit.
.It Fl v
-Specified once, prints information about status.
-Twice, prints each filename as it's processed.
+Increase verbosity.
+Specify once for synchronisation status, twice to print the name of each file
+as it's processed.
+If
+.Fl f
+is given, specify once to print more information about the encapsulated X.509
+certificate, twice to print the certificate in PEM format.
.It Ar outputdir
The directory where
.Nm