diff options
| author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-02 14:54:50 +0000 |
|---|---|---|
| committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-02 14:54:50 +0000 |
| commit | 0ed3d8db40c5b9ad99397f229866fc22c8caa8b2 (patch) | |
| tree | 1a1a4ac7d0d05a830e6dc302fe940dd977dc6e31 | |
| parent | 7d299148ade142edde6dbef672b37071c882e3a2 (diff) | |
| download | ruby-0ed3d8db40c5b9ad99397f229866fc22c8caa8b2.tar.gz ruby-0ed3d8db40c5b9ad99397f229866fc22c8caa8b2.tar.xz ruby-0ed3d8db40c5b9ad99397f229866fc22c8caa8b2.zip | |
* ext/openssl/ossl_ssl.c: initialize @hostname of SSLSocket to avoid
warning at SSLSocket#connect.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | ext/openssl/ossl_ssl.c | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Wed Dec 2 23:51:28 2009 NAKAMURA, Hiroshi <nahi@ruby-lang.org> + + * ext/openssl/ossl_ssl.c: initialize @hostname of SSLSocket to avoid + warning at SSLSocket#connect. + Tue Dec 1 18:01:43 2009 NAKAMURA, Hiroshi <nahi@ruby-lang.org> * test/digest/test_digest_extend.rb: added tests for digest framework. diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index 6a3e200ee..97c5583b9 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -963,6 +963,9 @@ ossl_ssl_initialize(int argc, VALUE *argv, VALUE self) ossl_ssl_set_ctx(self, ctx); ossl_ssl_set_sync_close(self, Qfalse); ossl_sslctx_setup(ctx); + + rb_iv_set(self, "@hostname", Qnil); + rb_call_super(0, 0); return self; |
