Project

General

Profile

Actions

Bug #3384

closed

ext/openssl: avoid to use cast

Bug #3384: ext/openssl: avoid to use cast

Added by taca (Takahiro Kambe) almost 16 years ago. Updated almost 15 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2010-05-31 revision 28117) [i486-netbsdelf]
Backport:
[ruby-dev:41530]

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

openssl-diff (544 Bytes) openssl-diff taca (Takahiro Kambe), 06/03/2010 11:33 PM
Actions

Also available in: PDF Atom