aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorGOTOU Yuuzou <gotoyuzo@notwork.org>2003-06-19 12:26:19 +0000
committerGOTOU Yuuzou <gotoyuzo@notwork.org>2003-06-19 12:26:19 +0000
commit4e9a5ab6c8c850aef5f0a50f8d5ff4a868a605f3 (patch)
treeacad59b31fd650acbbcd4b9b42a87d3c5fb2a481 /examples
parent0071c8f338aa6c19b40cd6c9717fb4dc4dfc0124 (diff)
downloadruby-openssl-history-4e9a5ab6c8c850aef5f0a50f8d5ff4a868a605f3.tar.gz
*** empty log message ***
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/ossl_x509store.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/ossl_x509store.rb b/examples/ossl_x509store.rb
index 7982fb9..f32737b 100755
--- a/examples/ossl_x509store.rb
+++ b/examples/ossl_x509store.rb
@@ -22,11 +22,11 @@ def verify_with_store(store, certs, callback)
print "serial = #{cert.serial}: "
# verify with block
- result = store.verify(cert, &callback)
- print result ? "Yes " : "No "
- if store.error != X509::V_OK
- puts store.error_string.inspect
- end
+ #result = store.verify(cert, &callback)
+ #print result ? "Yes " : "No "
+ #if store.error != X509::V_OK
+ # puts store.error_string.inspect
+ #end
# verify with callback
print store.verify(cert) ? "Yes " : "No "
@@ -35,12 +35,12 @@ def verify_with_store(store, certs, callback)
end
# verify by StoreContext
- ctx = X509::StoreContext.new(store)
- ctx.cert = cert
- print ctx.verify ? "Yes " : "No "
- if ctx.error != X509::V_OK
- puts ctx.error_string.inspect
- end
+ #ctx = X509::StoreContext.new(store)
+ #ctx.cert = cert
+ #print ctx.verify ? "Yes " : "No "
+ #if ctx.error != X509::V_OK
+ # puts ctx.error_string.inspect
+ #end
puts
}