diff options
author | GOTOU Yuuzou <gotoyuzo@notwork.org> | 2003-07-21 17:54:03 +0000 |
---|---|---|
committer | GOTOU Yuuzou <gotoyuzo@notwork.org> | 2003-07-21 17:54:03 +0000 |
commit | c7f1f4441ca27c111fb55a07f40f8c3f8dc217d4 (patch) | |
tree | 957558887e5791d0dbbd504712efb3d3a520e40f /examples/ossl_x509store.rb | |
parent | 4f0524a1699662bb1f7208ab822075a0a859a5ac (diff) | |
download | ruby-openssl-history-c7f1f4441ca27c111fb55a07f40f8c3f8dc217d4.tar.gz |
*** empty log message ***
Diffstat (limited to 'examples/ossl_x509store.rb')
-rwxr-xr-x | examples/ossl_x509store.rb | 4 |
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) |