From: "Martin Boßlet" Date: 2011-07-02T09:07:50+09:00 Subject: [ruby-core:37725] Re: open-ssl related errors on MacOSX 2011/7/2 SASADA Koichi : > Hi, > > I got following errors on current trunk with test-all TESTS='-qv -x > test_io'. �What should I do? > >> Finished tests in 243.819758s, 32.0483 tests/s, 7695.3157 assertions/s. >> >> � 1) Error: >> test_new_certificate_id_with_digest(OpenSSL::TestOCSP): >> NameError: uninitialized constant OpenSSL::Digest::SHA256 >> � � /Users/ko1/ruby/trunk/test/openssl/test_ocsp.rb:31:in `test_new_certificate_id_with_digest' >> � � ../trunk/test/runner.rb:13:in `
' >> >> � 2) Error: >> test_session_time(OpenSSL::TestSSLSession): >> ArgumentError: unknown type: expecting an asn1 sequence >> � � /Users/ko1/ruby/trunk/test/openssl/test_ssl_session.rb:63:in `initialize' >> � � /Users/ko1/ruby/trunk/test/openssl/test_ssl_session.rb:63:in `new' >> � � /Users/ko1/ruby/trunk/test/openssl/test_ssl_session.rb:63:in `test_session_time' >> >> � 3) Error: >> test_session_timeout(OpenSSL::TestSSLSession): >> ArgumentError: unknown type: expecting an asn1 sequence >> � � /Users/ko1/ruby/trunk/test/openssl/test_ssl_session.rb:76:in `initialize' >> � � /Users/ko1/ruby/trunk/test/openssl/test_ssl_session.rb:76:in `new' >> � � /Users/ko1/ruby/trunk/test/openssl/test_ssl_session.rb:76:in `test_session_timeout' >> >> � 4) Error: >> test_dsa_with_sha2(OpenSSL::TestX509Certificate): >> NameError: uninitialized constant OpenSSL::Digest::SHA256 >> � � /Users/ko1/ruby/trunk/test/openssl/test_x509cert.rb:188:in `test_dsa_with_sha2' >> � � ../trunk/test/runner.rb:13:in `
' >> >> 7814 tests, 1876270 assertions, 0 failures, 4 errors, 29 skips >> make: *** [yes-test-all] Error 4 >> $ ./ruby -v -ropenssl -e 'p OpenSSL::OPENSSL_VERSION' >> ruby 1.9.3dev (2011-07-02 trunk 32363) [i386-darwin9.8.0] >> "OpenSSL 0.9.7l 28 Sep 2006" > Hi Koichi, it seems as if SHA-256 is not supported by OpenSSL versions < 0.9.8. I fixed this in r32366. I'm still looking into the "asn1_sequence" thing - I'll let you know as soon as I find something! Regards, Martin