1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/openssl
rhe b257af8859 openssl: adjust tests for OpenSSL 1.1.0
This fixes `make test-all TESTS=openssl` with OpenSSL master.

* test/openssl/test_x509name.rb: Don't register OID for 'emailAddress'
  and 'serialNumber'. A recent change in OpenSSL made OBJ_create()
  reject an already existing OID. They were needed to run tests with
  OpenSSL 0.9.6 which is now unsupported.
  https://git.openssl.org/gitweb/?p=openssl.git;a=commit;h=52832e470f5fe8c222249ae5b539aeb3c74cdb25
  [ruby-core:75225] [Feature #12324]

* test/openssl/test_ssl_session.rb (test_server_session): Duplicate
  SSL::Session before re-adding to the session store. OpenSSL 1.1.0
  starts rejecting SSL_SESSION once removed by SSL_CTX_remove_session().
  https://git.openssl.org/gitweb/?p=openssl.git;a=commit;h=7c2d4fee2547650102cd16d23f8125b76112ae75

* test/openssl/test_pkey_ec.rb (setup): Remove X25519 from @keys. X25519
  is new in OpenSSL 1.1.0 but this is for key agreement and not for
  signing.

* test/openssl/test_pair.rb, test/openssl/test_ssl.rb,
  test/openssl/utils.rb: Set security level to 0 when using aNULL cipher
  suites.

* test/openssl/utils.rb: Use 1024 bits DSA key for client certificates.

* test/openssl/test_engine.rb: Run each test in separate process.
  We can no longer cleanup engines explicitly as ENGINE_cleanup() was
  removed.
  https://git.openssl.org/gitweb/?p=openssl.git;a=commit;h=6d4fb1d59e61aacefa25edc4fe5acfe1ac93f743

* ext/openssl/ossl_engine.c (ossl_engine_s_cleanup): Add a note to the
  RDoc for Engine.cleanup.

* ext/openssl/lib/openssl/digest.rb: Don't define constants for DSS,
  DSS1 and SHA(-0) when using with OpenSSL 1.1.0. They are removed.

* test/openssl/test_digest.rb, test/openssl/test_pkey_dsa.rb,
  test/openssl/test_pkey_dsa.rb, test/openssl/test_ssl.rb,
  test/openssl/test_x509cert.rb, test/openssl/test_x509req.rb: Don't
  test unsupported hash functions.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-06-07 12:20:46 +00:00
..
test_asn1.rb openssl: add missing test for r55219 2016-05-31 14:10:11 +00:00
test_bn.rb
test_buffering.rb
test_cipher.rb openssl: drop OpenSSL 0.9.6/0.9.7 support 2016-05-25 08:50:03 +00:00
test_config.rb
test_digest.rb openssl: adjust tests for OpenSSL 1.1.0 2016-06-07 12:20:46 +00:00
test_engine.rb openssl: adjust tests for OpenSSL 1.1.0 2016-06-07 12:20:46 +00:00
test_fips.rb
test_hmac.rb openssl: adapt to OpenSSL 1.1.0 opaque structs 2016-06-05 15:35:12 +00:00
test_ns_spki.rb
test_ocsp.rb
test_pair.rb openssl: adjust tests for OpenSSL 1.1.0 2016-06-07 12:20:46 +00:00
test_partial_record_read.rb
test_pkcs5.rb
test_pkcs7.rb openssl: drop OpenSSL 0.9.6/0.9.7 support 2016-05-25 08:50:03 +00:00
test_pkcs12.rb
test_pkey_dh.rb
test_pkey_dsa.rb openssl: adjust tests for OpenSSL 1.1.0 2016-06-07 12:20:46 +00:00
test_pkey_ec.rb openssl: adjust tests for OpenSSL 1.1.0 2016-06-07 12:20:46 +00:00
test_pkey_rsa.rb
test_random.rb openssl: check existence of RAND_pseudo_bytes() 2016-06-05 12:38:34 +00:00
test_ssl.rb openssl: adjust tests for OpenSSL 1.1.0 2016-06-07 12:20:46 +00:00
test_ssl_session.rb openssl: adjust tests for OpenSSL 1.1.0 2016-06-07 12:20:46 +00:00
test_x509attr.rb
test_x509cert.rb openssl: adjust tests for OpenSSL 1.1.0 2016-06-07 12:20:46 +00:00
test_x509crl.rb
test_x509ext.rb
test_x509name.rb openssl: adjust tests for OpenSSL 1.1.0 2016-06-07 12:20:46 +00:00
test_x509req.rb openssl: adjust tests for OpenSSL 1.1.0 2016-06-07 12:20:46 +00:00
test_x509store.rb openssl: drop OpenSSL 0.9.6/0.9.7 support 2016-05-25 08:50:03 +00:00
utils.rb openssl: adjust tests for OpenSSL 1.1.0 2016-06-07 12:20:46 +00:00