mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/ossl_ssl.c (ossl_sslctx_initialize): should initialize
instance variables. [ruby-talk:77362] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d197683232
commit
c9b177327d
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue