don't print verbose policy check messages when -quiet is selected even on error
authorDr. Stephen Henson <steve@openssl.org>
Tue, 4 Dec 2012 23:18:44 +0000 (23:18 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 4 Dec 2012 23:18:44 +0000 (23:18 +0000)
apps/s_cb.c

index e0289d41dd700fd4998595c3b4f8fa2b24ad2a64..1e03288dc68e0d41fca8e08ab0f16ae62218935f 100644 (file)
@@ -190,7 +190,8 @@ int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx)
                BIO_printf(bio_err,"\n");
                break;
        case X509_V_ERR_NO_EXPLICIT_POLICY:
-               policies_print(bio_err, ctx);
+               if (!verify_quiet)
+                       policies_print(bio_err, ctx);
                break;
                }
        if (err == X509_V_OK && ok == 2 && !verify_quiet)