Blame SOURCES/0034-Add-verbose-option-to-SCEP-CA-if-requested-in-add-sc.patch

a223c4
From e4d0a60836e1ecbcd6390b88dceb2ca29d3179dc Mon Sep 17 00:00:00 2001
a223c4
From: Rob Crittenden <rcritten@redhat.com>
a223c4
Date: Thu, 27 Feb 2020 18:15:02 -0500
a223c4
Subject: [PATCH 34/39] Add verbose option to SCEP CA if requested in
a223c4
 add-scep-ca
a223c4
a223c4
This option was silently dropped from the helper arguments even
a223c4
if requested on the add-scep-ca CLI and was only passed to the
a223c4
dbus helper.
a223c4
a223c4
Add as many -v as requested though the scep helper only logs at
a223c4
most at level 1.
a223c4
---
a223c4
 src/getcert.c | 3 +++
a223c4
 1 file changed, 3 insertions(+)
a223c4
a223c4
diff --git a/src/getcert.c b/src/getcert.c
a223c4
index 4713dd1..3d78a73 100644
a223c4
--- a/src/getcert.c
a223c4
+++ b/src/getcert.c
a223c4
@@ -4580,6 +4580,9 @@ add_scep_ca(const char *argv0, int argc, const char **argv)
a223c4
 				  certs ? "-I" : "",
a223c4
 				  certs ? shell_escape(globals.tctx, certs) : "",
a223c4
 				  prefer_non_renewal ? "-n" : "");
a223c4
+	for (c = 0; c < verbose; c++) {
a223c4
+		command = talloc_strdup_append(command, " -v");
a223c4
+	}
a223c4
 	if (command == NULL) {
a223c4
 		printf(_("Error building command line.\n"));
a223c4
 		exit(1);
a223c4
-- 
a223c4
2.21.1
a223c4