aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ossl_x509store.rb
diff options
context:
space:
mode:
authorGOTOU Yuuzou <gotoyuzo@notwork.org>2003-07-21 17:54:03 +0000
committerGOTOU Yuuzou <gotoyuzo@notwork.org>2003-07-21 17:54:03 +0000
commitc7f1f4441ca27c111fb55a07f40f8c3f8dc217d4 (patch)
tree957558887e5791d0dbbd504712efb3d3a520e40f /examples/ossl_x509store.rb
parent4f0524a1699662bb1f7208ab822075a0a859a5ac (diff)
downloadruby-openssl-history-c7f1f4441ca27c111fb55a07f40f8c3f8dc217d4.tar.gz
*** empty log message ***
Diffstat (limited to 'examples/ossl_x509store.rb')
-rwxr-xr-xexamples/ossl_x509store.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/ossl_x509store.rb b/examples/ossl_x509store.rb
index 4f51807..eed5e80 100755
--- a/examples/ossl_x509store.rb
+++ b/examples/ossl_x509store.rb
@@ -104,5 +104,7 @@ puts "========== Add CRL to the Store and Verify Certs =========="
store.add_crl(crl)
#store.add_path("./crl")
#store.add_file("./0crl.pem")
-store.flags = X509::V_FLAG_CRL_CHECK|X509::V_FLAG_CRL_CHECK_ALL
+if OPENSSL_VERSION_NUMBER >= 0x00907000
+ store.flags = X509::V_FLAG_CRL_CHECK|X509::V_FLAG_CRL_CHECK_ALL
+end
verify_with_store(store, certs, verify_cb)