-
-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: lib/pom.rb maven/jruby-complete/src/it/integrity/verify.bsh maven/jruby-dist/src/it/integrity/verify.bsh maven/jruby-jars/src/it/integrity/verify.bsh maven/jruby/src/it/integrity/verify.bsh test/externals/ruby1.9/excludes/OpenSSL/TestASN1.rb test/externals/ruby1.9/excludes/OpenSSL/TestDigest.rb test/externals/ruby1.9/openssl/test_asn1.rb test/externals/ruby1.9/openssl/test_certificate.rb test/test_command_line_switches.rb
- Loading branch information
Showing
25 changed files
with
56 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
exclude :test_extension, 'Can not guarantee extension order using Java APIs' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
require 'test/unit' | ||
require 'openssl' | ||
|
||
class TestOpenssl < Test::Unit::TestCase | ||
def test_adding_pem | ||
OpenSSL.debug = true | ||
# mimic what rubygems/request#add_rubygems_trusted_certs does | ||
# to find the pem certificates | ||
base = $LOAD_PATH.detect { |p| p =~ /ruby\/stdlib/ } | ||
pems = Dir[ File.join(base, 'rubygems/ssl_certs/*pem') ] | ||
assert_equal( 9, pems.size ) | ||
pems.each do |pem| | ||
store = OpenSSL::X509::Store.new | ||
cert = OpenSSL::X509::Certificate.new(File.read(pem)) | ||
assert( !store.verify(cert) ) | ||
store.add_file(pem) | ||
# only verify on self signed certifactes | ||
assert( store.verify(cert) ) unless pem =~ /AddTrustExternalCARoot.pem/ | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
exclude :test_bit_string_infinite_length, 'needs investigation' | ||
exclude :test_bit_string_infinite_length, 'encoding works but decoding not implemented' | ||
exclude :test_cons_explicit_tagging, 'needs investigation' | ||
exclude :test_cons_explicit_tagging_inf_length, 'needs investigation' | ||
exclude :test_cons_implicit_tagging, 'needs investigation' | ||
exclude :test_cons_implicit_tagging_inf_length, 'needs investigation' | ||
exclude :test_cons_without_array_forbidden, 'needs investigation' | ||
exclude :test_cons_without_inf_length_forbidden, 'needs investigation' | ||
exclude :test_create_inf_length_primitive, 'needs investigation' | ||
exclude :test_decode_all, 'needs investigation' | ||
exclude :test_decode_pem, 'needs investigation' | ||
exclude :test_encode_nil, 'needs investigation' | ||
exclude :test_octet_string_infinite_length, 'needs investigation' | ||
exclude :test_octet_string_infinite_length_explicit_tagging, 'needs investigation' | ||
exclude :test_octet_string_infinite_length_implicit_tagging, 'needs investigation' | ||
exclude :test_parse_empty_sequence, 'needs investigation' | ||
exclude :test_parse_tagged_0_infinite, 'needs investigation' | ||
exclude :test_prim_explicit_tagging, 'needs investigation' | ||
exclude :test_prim_implicit_tagging, 'needs investigation' | ||
exclude :test_primitive_inf_length, 'needs investigation' | ||
exclude :test_recursive_octet_string_infinite_length, 'needs investigation' | ||
exclude :test_recursive_octet_string_parse, 'needs investigation' | ||
exclude :test_seq_infinite_length, 'needs investigation' | ||
exclude :test_set_infinite_length, 'needs investigation' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
exclude :test_AES, 'needs investigation' | ||
exclude :test_AES, 'works - just need to enable JCE unlimited strength' | ||
exclude :test_AES_crush, 'needs investigation' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
exclude :test_digest_by_oid_and_name_sha2, 'Java exception raised' | ||
exclude :test_openssl_digest, 'Java exception raised' | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
exclude :test_spaceship, 'needs investigation' | ||
exclude :test_unrecognized_oid, 'needs investigation' | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
exclude :test_attr, 'Java exception raised' | ||
exclude :test_attr, 'fails with <2> expected but was <0> [test_x509req.rb:94]' | ||
exclude :test_sign_and_verify, 'Version broke in recent rewrite' | ||
exclude :test_version, 'Version broke in recent rewrite' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters