[ruby-cvs:62618] rhe:r55454 (trunk): openssl: implement initialize_copy method for PKey classes

rhe at ruby-lang.org rhe at ruby-lang.org
Sun Jun 19 18:29:59 JST 2016


rhe	2016-06-19 18:29:59 +0900 (Sun, 19 Jun 2016)

  New Revision: 55454

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55454

  Log:
    openssl: implement initialize_copy method for PKey classes
    
    * ext/openssl/ossl_pkey_dh.c, ext/openssl/ossl_pkey_dsa.c,
      ext/openssl/ossl_pkey_ec.c, ext/openssl/ossl_pkey_rsa.c: Implement
      initialize_copy method for OpenSSL::PKey::*.
      [ruby-core:75504] [Bug #12381]
    
    * test/openssl/test_pkey_dh.rb, test/openssl/test_pkey_dsa.rb,
      test/openssl/test_pkey_ec.rb, test/openssl/test_pkey_rsa.rb: Test they
      actually copy the OpenSSL objects, and modifications to cloned object
      don't affect the original object.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_pkey_dh.c
    trunk/ext/openssl/ossl_pkey_dsa.c
    trunk/ext/openssl/ossl_pkey_ec.c
    trunk/ext/openssl/ossl_pkey_rsa.c
    trunk/test/openssl/test_pkey_dh.rb
    trunk/test/openssl/test_pkey_dsa.rb
    trunk/test/openssl/test_pkey_ec.rb
    trunk/test/openssl/test_pkey_rsa.rb


More information about the ruby-cvs mailing list