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

rt-commit at redwax.eu rt-commit at redwax.eu
Tue Aug 22 22:43:55 CEST 2023


Author: minfrin at redwax.eu
Date: Tue Aug 22 22:43:55 2023
New Revision: 148

Log:
Silence the search filter message to stderr when the
quiet flag is set.

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

Modified: redwax-tool/trunk/ChangeLog
==============================================================================
--- redwax-tool/trunk/ChangeLog	(original)
+++ redwax-tool/trunk/ChangeLog	Tue Aug 22 22:43:55 2023
@@ -1,5 +1,8 @@
 
 Changes with v0.9.3
+
+ *) Silence the search filter message to stderr when the
+    quiet flag is set. [Graham Leggett]
 
  *) Add --filter-date to specify the date for verification
     if not today. Add --filter-threshold to indicate days

Modified: redwax-tool/trunk/redwax_openssl.c
==============================================================================
--- redwax-tool/trunk/redwax_openssl.c	(original)
+++ redwax-tool/trunk/redwax_openssl.c	Tue Aug 22 22:43:55 2023
@@ -4810,15 +4810,19 @@
     X509 *x = d2i_X509(NULL, &der, cert->len);
     if (x) {
 
-        BIO *bio_err;
-        bio_err = BIO_new_fp(stderr, BIO_NOCLOSE);
-
-        BIO_printf(bio_err, "search-filter: ");
-        X509_NAME_print_ex(bio_err,
+        if (!r->quiet && !r->complete) {
+
+        	BIO *bio_err;
+        	bio_err = BIO_new_fp(stderr, BIO_NOCLOSE);
+
+        	BIO_printf(bio_err, "search-filter: ");
+        	X509_NAME_print_ex(bio_err,
                         X509_get_subject_name(x),
                         0, XN_FLAG_RFC2253);
-        BIO_printf(bio_err, "\n");
-        BIO_free(bio_err);
+        	BIO_printf(bio_err, "\n");
+        	BIO_free(bio_err);
+
+        }
 
 // FIXME: use openssl flag for self signed
 



More information about the rt-commit mailing list