Skip to content

Commit

Permalink
* ext/openssl/ossl_pkcs12.c (ossl_pkcs12_initialize): first argument
Browse files Browse the repository at this point in the history
  of rb_protect should take an argument of VALUE.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
unak committed Dec 15, 2003
1 parent aadcff2 commit 8e43498
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Mon Dec 15 09:27:46 2003 NAKAMURA Usaku <[email protected]>

* ext/openssl/ossl_pkcs12.c (ossl_pkcs12_initialize): first argument
of rb_protect should take an argument of VALUE.

Sun Dec 14 18:46:48 2003 WATANABE Hirofumi <[email protected]>

* ext/socket/socket.c (Init_socket): IPv6 is not supported although
Expand Down
8 changes: 5 additions & 3 deletions ext/openssl/ossl_pkcs12.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,14 @@ ossl_pkcs12_initialize(int argc, VALUE *argv, VALUE self)
pkey = cert = ca = Qnil;
if(!PKCS12_parse((PKCS12*)DATA_PTR(self), passphrase, &key, &x509, &x509s))
ossl_raise(ePKCS12Error, NULL);
pkey = rb_protect((VALUE(*)())ossl_pkey_new, (VALUE)key, &st); /* NO DUP */
pkey = rb_protect((VALUE(*)_((VALUE)))ossl_pkey_new, (VALUE)key,
&st); /* NO DUP */
if(st) goto err;
cert = rb_protect((VALUE(*)())ossl_x509_new, (VALUE)x509, &st);
cert = rb_protect((VALUE(*)_((VALUE)))ossl_x509_new, (VALUE)x509, &st);
if(st) goto err;
if(x509s){
ca = rb_protect((VALUE(*)())ossl_x509_sk2ary, (VALUE)x509s, &st);
ca =
rb_protect((VALUE(*)_((VALUE)))ossl_x509_sk2ary, (VALUE)x509s, &st);
if(st) goto err;
}

Expand Down

0 comments on commit 8e43498

Please sign in to comment.