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
nahi e7e87b3c4e * ext/openssl/ossl_cipher.c (ossl_cipher_initialize): Avoid possible
SEGV from AES encryption/decryption. Processing data by
  Cipher#update without initializing key (meaningless usage of Cipher
  object since we don't offer a way to export a key) could cause SEGV.

  In OpenSSL, the EVP which has EVP_CIPH_RAND_KEY flag (such as DES3) 
  allows uninitialized key, but other EVPs (such as AES) does not
  allow it. Calling EVP_CipherUpdate() without initializing key causes
  SEGV so we set the data filled with "\0" as the key by default. See
  #2768.

* test/openssl/test_cipher.rb: test it.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-28 13:48:05 +00:00
..
ssl_server.rb
test_asn1.rb * ext/openssl/ossl_asn1.c: Do not parse zero-tagged values as EOC. Do 2011-05-23 01:01:49 +00:00
test_bn.rb * ext/openssl/ossl_bn.c (GetBNPtr): add missing nil case. 2011-01-29 18:48:24 +00:00
test_buffering.rb * test/openssl/test_buffering.rb 2011-06-22 05:48:44 +00:00
test_cipher.rb * ext/openssl/ossl_cipher.c (ossl_cipher_initialize): Avoid possible 2011-07-28 13:48:05 +00:00
test_config.rb * test/openssl/test_config.rb: Commit missing file 2011-06-15 16:04:32 +00:00
test_digest.rb * test/openssl/digest.rb: remove MDC2 from test, it is not available 2011-06-13 11:32:43 +00:00
test_engine.rb * ext/openssl/ossl_engine.c: Avoid double free of ENGINE reference. 2011-07-22 00:13:07 +00:00
test_hmac.rb drying up the requires in the openssl tests 2010-12-15 19:50:00 +00:00
test_ns_spki.rb drying up the requires in the openssl tests 2010-12-15 19:50:00 +00:00
test_ocsp.rb * test/openssl/test_ocsp.rb 2011-07-02 00:03:29 +00:00
test_pair.rb * ext/openssl/ossl.c (ossl_verify_cb): trap the exception from 2011-07-14 05:41:05 +00:00
test_pkcs7.rb drying up the requires in the openssl tests 2010-12-15 19:50:00 +00:00
test_pkcs12.rb * test/openssl/test_pkcs12.rb: Add test and intermediate certificates. 2011-07-27 00:31:43 +00:00
test_pkey_dh.rb * ext/openssl/pkey_dh.c: corrected documentation. 2011-06-13 01:58:09 +00:00
test_pkey_dsa.rb * ext/openssl/ossl.h: Introduced OSSL_BIO_reset macro for PEM/DER 2011-06-22 08:41:08 +00:00
test_pkey_ec.rb * ext/openssl/ossl.h: Introduced OSSL_BIO_reset macro for PEM/DER 2011-06-22 08:41:08 +00:00
test_pkey_rsa.rb * ext/openssl/ossl.h: Introduced OSSL_BIO_reset macro for PEM/DER 2011-06-22 08:41:08 +00:00
test_ssl.rb * ext/openssl/ossl.c (ossl_verify_cb): trap the exception from 2011-07-14 05:41:05 +00:00
test_ssl_session.rb * test/openssl/test_ssl_session.rb: add PEM SSL session without TLS 2011-07-16 23:02:42 +00:00
test_x509cert.rb * test/openssl/test_ocsp.rb 2011-07-02 00:03:29 +00:00
test_x509crl.rb * remove trailing spaces. 2011-05-15 11:55:52 +00:00
test_x509ext.rb drying up the requires in the openssl tests 2010-12-15 19:50:00 +00:00
test_x509name.rb * ext/openssl/ossl_x509name.c: Add X509::Name#hash_old as a wrapper 2011-06-23 13:51:55 +00:00
test_x509req.rb * remove trailing spaces. 2011-05-15 11:55:52 +00:00
test_x509store.rb * test/openssl/test_x509store.rb (test_set_errors): Redhat is 2011-06-21 16:33:06 +00:00
utils.rb * ext/openssl/ossl.c (ossl_verify_cb): trap the exception from 2011-07-14 05:41:05 +00:00