Skip to content
Permalink
Browse files
follow the fix of jruby/jruby-openssl#18
Sponsored by Lookout Inc.
  • Loading branch information
mkristian committed Dec 16, 2014
1 parent 1d128d2 commit 81195c496bc009edbc149c375ec52d8540d6e9c8
Showing with 7 additions and 2 deletions.
  1. +7 −2 test/externals/ruby1.9/openssl/test_asn1.rb
@@ -186,8 +186,13 @@ def test_decode
assert_equal(OpenSSL::ASN1::Null, pkey.value[0].value[1].class)

assert_equal(OpenSSL::ASN1::BitString, sig_val.class)
cululated_sig = key.sign(OpenSSL::Digest::SHA1.new, tbs_cert.to_der)
assert_equal(cululated_sig, sig_val.value)

# since the direct compare of signatures does not work
# we verify the signature via the certificate itself
assert OpenSSL::X509::Certificate.new( cert.to_der ).verify key

#cululated_sig = key.sign(OpenSSL::Digest::SHA1.new, tbs_cert.to_der)
#assert_equal(cululated_sig, sig_val.value)
end

def test_encode_boolean

0 comments on commit 81195c4

Please sign in to comment.