diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-09-17 19:16:28 +0200 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-09-17 19:16:28 +0200 |
commit | 5d20c4fb3582a0e6cbf8513c94c60e4cd326716d (patch) | |
tree | f2d8a974055968c0315588ea30d369ace38fe1d5 /apps/s_cb.c | |
parent | GOST public key algorithm ENGINE donated to the OpenSSL by Cryptocom. (diff) | |
download | openssl-5d20c4fb3582a0e6cbf8513c94c60e4cd326716d.tar.xz openssl-5d20c4fb3582a0e6cbf8513c94c60e4cd326716d.zip |
Overhaul of by_dir code to handle dynamic loading of CRLs.
Diffstat (limited to 'apps/s_cb.c')
-rw-r--r-- | apps/s_cb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/s_cb.c b/apps/s_cb.c index 573f98cea6..6d322d4f40 100644 --- a/apps/s_cb.c +++ b/apps/s_cb.c @@ -123,6 +123,7 @@ int verify_depth=0; int verify_error=X509_V_OK; +int verify_return_error=0; int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx) { @@ -142,7 +143,8 @@ int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx) X509_verify_cert_error_string(err)); if (verify_depth >= depth) { - ok=1; + if (!verify_return_error) + ok=1; verify_error=X509_V_OK; } else |