summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-30 06:58:43 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-30 06:58:43 +0000
commit7d4600012bb36713c946d223c0916777f9ad2143 (patch)
tree5acc0672fbdf01440e41b54b9c5b1194cec63d66
parentd2a8eca8d832289a2707e37da78b99bf15ac3392 (diff)
downloadruby-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
-rw-r--r--ChangeLog5
-rw-r--r--ext/openssl/ossl_ssl.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 642ee4ac0..cec645908 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Jul 30 15:54:04 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_ssl.c (ossl_sslctx_initialize): should initialize
+ instance variables. [ruby-talk:77362]
+
Wed Jul 30 15:10:02 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* error.c (rb_raise): snprintf() termination moved to
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;
}