1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/openssl
gotoyuzo 22ab58c03c * ext/openssl/extconf.rb: check for EVP_CIPHER_CTX_copy, ENGINE_add,
EVP_CIPHER_CTX_set_padding, EVP_CipherFinal_ex, EVP_CipherInit_ex,
  EVP_DigestFinal_ex and EVP_DigestInit_ex.

* ext/openssl/openssl_missing.c (EVP_CIPHER_CTX_copy): new function.

* ext/openssl/openssl_missing.h (EVP_DigestInit_ex, EVP_DigestFinal_ex,
  EVP_CipherInit_ex, EVP_CipherFinal_ex, HMAC_Init_ex): new macro for
  OpenSSL 0.9.6.

* ext/openssl/ossl_cipher.c (ossl_cipher_alloc, ossl_cipher_initialize,
  ossl_cipher_copy, ossl_cipher_reset, ossl_cipher_encrypt,
  ossl_cipher_decrypt, ossl_cipher_final, ossl_cipher_set_key,
  ossl_cipher_set_iv): replace all EVP_CipherInit and
  EVP_CipherFinal into EVP_CipherInit_ex and EVP_CipherFinal_ex.
  and EVP_CIPHER_CTX_init should only be called once.

* ext/openssl/ossl_cipher.c (ossl_cipher_set_padding): check for
  EVP_CIPHER_CTX_set_padding.

* ext/openssl/ossl_cipher.c (Init_ossl_cipher): Cipher#<< is deprecated.

* ext/openssl/ossl_digest.c: replace all EVP_DigestInit and
  EVP_DigestFinal into EVP_DigestInit_ex and EVP_DigestFinal_ex.
  and EVP_MD_CTX_init should only be called once.

* ext/openssl/ossl_digest.c (digest_final): should call
  EVP_MD_CTX_cleanup to avoid memory leak.

* ext/openssl/ossl_hmac.c (ossl_hmac_initialize): repalce HMAC_init
  into HMAC_init_ex. and HMAC_CTX_init is moved to ossl_hmac_alloc.

* ext/openssl/ossl_hmac.c (hmac_final): should call
  HMAC_CTX_cleanup to avoid memory leak.

* test/openssl/test_cipher.rb, test/openssl/test_digest.rb,
  test/openssl/test_hmac.rb: new file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-30 10:48:43 +00:00
..
lib * ext/openssl/ossl_ssl.c (ossl_ssl_read): take optional second argument 2004-05-26 18:11:29 +00:00
.cvsignore
extconf.rb * ext/openssl/extconf.rb: check for EVP_CIPHER_CTX_copy, ENGINE_add, 2004-06-30 10:48:43 +00:00
MANIFEST MANIFEST update. 2004-03-23 05:49:10 +00:00
openssl_missing.c * ext/openssl/extconf.rb: check for EVP_CIPHER_CTX_copy, ENGINE_add, 2004-06-30 10:48:43 +00:00
openssl_missing.h * ext/openssl/extconf.rb: check for EVP_CIPHER_CTX_copy, ENGINE_add, 2004-06-30 10:48:43 +00:00
ossl.c * exception message clean-up by Ian Macdonald <ian@caliban.org>. 2004-03-29 07:54:38 +00:00
ossl.h * ext/openssl/ossl_pkcs12.[ch]: new files. add OpenSSL::PKCS12. 2003-12-11 12:29:08 +00:00
ossl_asn1.c * ext/openssl/ossl_asn1.c (ossl_i2d_ASN1_TYPE, ossl_ASN1_TYPE_free): 2004-05-24 16:50:59 +00:00
ossl_asn1.h * ext/openssl/ossl_asn1.h: global symbols should be declared 2003-10-04 18:45:53 +00:00
ossl_bio.c * ext/openssl: all files are reviewed to simplify and avoid memory leak. 2003-09-17 09:05:02 +00:00
ossl_bio.h * ext/openssl: all files are reviewed to simplify and avoid memory leak. 2003-09-17 09:05:02 +00:00
ossl_bn.c * ext/openssl: all files are reviewed to simplify and avoid memory leak. 2003-09-17 09:05:02 +00:00
ossl_bn.h
ossl_cipher.c * ext/openssl/extconf.rb: check for EVP_CIPHER_CTX_copy, ENGINE_add, 2004-06-30 10:48:43 +00:00
ossl_cipher.h
ossl_config.c * exception message clean-up by Ian Macdonald <ian@caliban.org>. 2004-03-29 07:54:38 +00:00
ossl_config.h
ossl_digest.c * ext/openssl/extconf.rb: check for EVP_CIPHER_CTX_copy, ENGINE_add, 2004-06-30 10:48:43 +00:00
ossl_digest.h
ossl_engine.c * lib/ext/openssl/extconf.rb: add check for some engine functions 2003-10-05 13:58:02 +00:00
ossl_engine.h * ext/openssl/ossl_engine.c: add a new module OpenSSL::Engine. 2003-10-02 08:47:11 +00:00
ossl_hmac.c * ext/openssl/extconf.rb: check for EVP_CIPHER_CTX_copy, ENGINE_add, 2004-06-30 10:48:43 +00:00
ossl_hmac.h
ossl_ns_spki.c * ext/openssl: all files are reviewed to simplify and avoid memory leak. 2003-09-17 09:05:02 +00:00
ossl_ns_spki.h
ossl_ocsp.c * ext/openssl/ossl_ocsp.c (ossl_ocspreq_initialize): the argument 2003-09-20 19:18:22 +00:00
ossl_ocsp.h
ossl_pkcs7.c * exception message clean-up by Ian Macdonald <ian@caliban.org>. 2004-03-29 07:54:38 +00:00
ossl_pkcs7.h
ossl_pkcs12.c * ext/openssl/ossl_pkcs12.c (ossl_pkcs12_initialize): first argument 2003-12-15 00:30:12 +00:00
ossl_pkcs12.h * ext/openssl/ossl_pkcs12.[ch]: new files. add OpenSSL::PKCS12. 2003-12-11 12:29:08 +00:00
ossl_pkey.c * ext/openssl/ossl_pkey.c (ossl_pkey_to_der): removed; it returns 2004-01-08 12:24:22 +00:00
ossl_pkey.h
ossl_pkey_dh.c * ext/openssl/ossl_pkey_dh.c (ossl_dh_initialize): should create 2004-06-21 16:36:19 +00:00
ossl_pkey_dsa.c * ext/openssl/ossl_pkey_dh.c (ossl_dh_initialize): should create 2004-06-21 16:36:19 +00:00
ossl_pkey_rsa.c * ext/openssl/ossl_pkey_dh.c (ossl_dh_initialize): should create 2004-06-21 16:36:19 +00:00
ossl_rand.c * ext/openssl: all files are reviewed to simplify and avoid memory leak. 2003-09-17 09:05:02 +00:00
ossl_rand.h
ossl_ssl.c * ext/openssl/ossl_ssl.c (ossl_ssl_read): take optional second argument 2004-05-26 18:11:29 +00:00
ossl_ssl.h
ossl_version.h
ossl_x509.c
ossl_x509.h * ext/openssl/ossl_ssl.c (ossl_ssl_peer_cert_chain): add new method 2003-11-01 09:24:55 +00:00
ossl_x509attr.c * ext/openssl/ossl_asn1.c: add DER encoder and decoder. 2003-10-03 08:58:01 +00:00
ossl_x509cert.c * ext/openssl: all files are reviewed to simplify and avoid memory leak. 2003-09-17 09:05:02 +00:00
ossl_x509crl.c * ext/openssl: all files are reviewed to simplify and avoid memory leak. 2003-09-17 09:05:02 +00:00
ossl_x509ext.c * /ext/openssl/ossl_x509ext.c (ossl_x509extfactory_create_ext): 2003-11-15 13:19:17 +00:00
ossl_x509name.c * ext/openssl/ossl_x509name.c: attribute value of DC (short name of 2004-05-12 05:38:20 +00:00
ossl_x509req.c * ext/openssl/ossl_x509req.c (ossl_x509req_to_der): add function for 2003-11-13 07:48:20 +00:00
ossl_x509revoked.c
ossl_x509store.c
ruby_missing.h