diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-30 06:58:43 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-30 06:58:43 +0000 |
| commit | 7d4600012bb36713c946d223c0916777f9ad2143 (patch) | |
| tree | 5acc0672fbdf01440e41b54b9c5b1194cec63d66 /ext | |
| parent | d2a8eca8d832289a2707e37da78b99bf15ac3392 (diff) | |
| download | ruby-7d4600012bb36713c946d223c0916777f9ad2143.tar.gz ruby-7d4600012bb36713c946d223c0916777f9ad2143.tar.xz ruby-7d4600012bb36713c946d223c0916777f9ad2143.zip | |
* ext/openssl/ossl_ssl.c (ossl_sslctx_initialize): should initialize
instance variables. [ruby-talk:77362]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/openssl/ossl_ssl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index 282d512fe..db28ed364 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -119,6 +119,11 @@ ossl_sslctx_initialize(int argc, VALUE *argv, VALUE self) Data_Get_Struct(self, SSL_CTX, ctx); + for(i = 0; i < numberof(ossl_sslctx_attrs); i++){ + char buf[32]; + snprintf(buf, sizeof(buf), "@%s", ossl_sslctx_attrs[i]); + rb_iv_set(self, buf, Qnil); + } if (rb_scan_args(argc, argv, "01", &ssl_method) == 0){ return self; } |
