[ruby-cvs:58608] tenderlove:r51460 (trunk): * ext/openssl/ossl_ssl.c (ossl_call_tmp_dh_callback): change callback

tenderlove at ruby-lang.org tenderlove at ruby-lang.org
Sat Aug 1 04:08:41 JST 2015


tenderlove	2015-08-01 04:08:40 +0900 (Sat, 01 Aug 2015)

  New Revision: 51460

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

  Log:
    * ext/openssl/ossl_ssl.c (ossl_call_tmp_dh_callback): change callback
      to return the Ruby dh (or ecdh) object that the caller cares about
      instead of doing rb_iv_get / set to communicate.  This means we can
      remove an rb_iv_get call, and only use the set calls for their
      intended purpose (to prevent the object from being GC'd).
    
    * ext/openssl/ossl_ssl.c (ossl_tmp_dh_callback): ditto
    * ext/openssl/ossl_ssl.c (ossl_call_tmp_ecdh_callback): ditto
    * ext/openssl/ossl_ssl.c (ossl_tmp_ecdh_callback): ditto

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_ssl.c


More information about the ruby-cvs mailing list