Actions
Bug #3384
closedext/openssl: avoid to use cast
Bug #3384:
ext/openssl: avoid to use cast
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2010-05-31 revision 28117) [i486-netbsdelf]
Backport:
Description
=begin
ext/opensslで、この部分だけ旧来のcastを使用しているのは何か理由があるのでしょうか?
--- ext/openssl/ossl_ssl.c.orig 2010-05-23 12:18:51.000000000 +0000
+++ ext/openssl/ossl_ssl.c
@@ -700,10 +700,10 @@ ossl_sslctx_get_ciphers(VALUE self)
if (!ciphers)
return rb_ary_new();
- num = sk_num((STACK*)ciphers);
- num = sk_SSL_CIPHER_num(ciphers);
ary = rb_ary_new2(num);
for(i = 0; i < num; i++){
-
cipher = (SSL_CIPHER*)sk_value((STACK*)ciphers, i);
-
}cipher = sk_SSL_CIPHER_value(ciphers, i); rb_ary_push(ary, ossl_ssl_cipher_to_ary(cipher));
return ary;
=end
Files
Actions