[rt-commit] r124 - in /redwax-tool/trunk: ChangeLog redwax-tool.c

rt-commit at redwax.eu rt-commit at redwax.eu
Fri Dec 10 19:48:18 CET 2021


Author: minfrin at redwax.eu
Date: Fri Dec 10 19:48:17 2021
New Revision: 124

Log:
Add --no-text-out option to suppress detailed text output
in --pem-out and --metadata-out.

Modified:
    redwax-tool/trunk/ChangeLog
    redwax-tool/trunk/redwax-tool.c

Modified: redwax-tool/trunk/ChangeLog
==============================================================================
--- redwax-tool/trunk/ChangeLog	(original)
+++ redwax-tool/trunk/ChangeLog	Fri Dec 10 19:48:17 2021
@@ -1,5 +1,8 @@
 
 Changes with v0.9.1
+
+ *) Add --no-text-out option to suppress detailed text output
+    in --pem-out and --metadata-out. [Graham Leggett]
 
  *) Allow the key to pick up an ID or a label from matching
     certificates in the pkcs11 case, covering all the options

Modified: redwax-tool/trunk/redwax-tool.c
==============================================================================
--- redwax-tool/trunk/redwax-tool.c	(original)
+++ redwax-tool/trunk/redwax-tool.c	Fri Dec 10 19:48:17 2021
@@ -184,11 +184,12 @@
 #define REDWAX_TOOL_FORMAT_OUT 294
 #define REDWAX_TOOL_JWKS_OUT 295
 #define REDWAX_TOOL_TEXT_OUT 296
-#define REDWAX_TOOL_SSH_PRIVATE_OUT 297
-#define REDWAX_TOOL_SSH_PUBLIC_OUT 298
-#define REDWAX_TOOL_SMIMEA_OUT 299
-#define REDWAX_TOOL_SSHFP_OUT 300
-#define REDWAX_TOOL_TLSA_OUT 301
+#define REDWAX_TOOL_NO_TEXT_OUT 297
+#define REDWAX_TOOL_SSH_PRIVATE_OUT 298
+#define REDWAX_TOOL_SSH_PUBLIC_OUT 299
+#define REDWAX_TOOL_SMIMEA_OUT 300
+#define REDWAX_TOOL_SSHFP_OUT 301
+#define REDWAX_TOOL_TLSA_OUT 302
 
 #define REDWAX_EXIT_OK 0
 #define REDWAX_EXIT_INIT 1
@@ -228,6 +229,8 @@
         "  --filter-verify-params=name\tSpecify the name of the set of parameters used\n\t\t\t\tfor verification. If unspecified, set to\n\t\t\t\t'default'." },
     { "text-out", REDWAX_TOOL_TEXT_OUT, 0,
         "  --text-out\t\t\tInclude additional text in certificate PEM and\n\t\t\t\tmetadata output." },
+    { "no-text-out", REDWAX_TOOL_NO_TEXT_OUT, 0,
+        "  --no-text-out\t\t\tExclude additional text in certificate PEM and\n\t\t\t\tmetadata output." },
     { "cert-out", REDWAX_TOOL_CERT_OUT, 0,
         "  --cert-out\t\t\tInclude leaf certificates in certificate output." },
     { "no-cert-out", REDWAX_TOOL_NO_CERT_OUT, 0,
@@ -2204,6 +2207,10 @@
             r->text++;
             break;
         }
+        case REDWAX_TOOL_NO_TEXT_OUT: {
+            r->text--;
+            break;
+        }
         case REDWAX_TOOL_CERT_OUT: {
             redwax_set_cert_out(r);
             break;



More information about the rt-commit mailing list