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 e0289d4..1e03288 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:
                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)
                break;
                }
        if (err == X509_V_OK && ok == 2 && !verify_quiet)