Skip to content


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
Original file line number Diff line number Diff line change
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(, 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 cert.to_der ).verify key

#cululated_sig = key.sign(, tbs_cert.to_der)
#assert_equal(cululated_sig, sig_val.value)

def test_encode_boolean
Expand Down

0 comments on commit 81195c4

Please sign in to comment.