Skip to content

Commit

Permalink
follow the fix of jruby/jruby-openssl#18
Browse files Browse the repository at this point in the history
Sponsored by Lookout Inc.
  • Loading branch information
mkristian committed Dec 16, 2014
1 parent 1d128d2 commit 81195c4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/externals/ruby1.9/openssl/test_asn1.rb
Expand Up @@ -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
Expand Down

0 comments on commit 81195c4

Please sign in to comment.