mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/ossl_ssl.c (ossl_sslctx_get_ciphers):
use sk_SSL_CIPHER_num and sk_SSL_CIPHER_value instead of cast. patched by Takahiro Kambe [ruby-dev:41530] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b04fa7b8e1
commit
78e3dfd95b
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Fri Jun 11 23:04:59 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/openssl/ossl_ssl.c (ossl_sslctx_get_ciphers):
|
||||||
|
use sk_SSL_CIPHER_num and sk_SSL_CIPHER_value instead of cast.
|
||||||
|
patched by Takahiro Kambe [ruby-dev:41530]
|
||||||
|
|
||||||
Fri Jun 11 22:59:31 2010 Tanaka Akira <akr@fsij.org>
|
Fri Jun 11 22:59:31 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* include/ruby/missing.h (isnan): fix compilation error on OpenBSD.
|
* include/ruby/missing.h (isnan): fix compilation error on OpenBSD.
|
||||||
|
|
|
@ -700,10 +700,10 @@ ossl_sslctx_get_ciphers(VALUE self)
|
||||||
if (!ciphers)
|
if (!ciphers)
|
||||||
return rb_ary_new();
|
return rb_ary_new();
|
||||||
|
|
||||||
num = sk_num((STACK*)ciphers);
|
num = sk_SSL_CIPHER_num(ciphers);
|
||||||
ary = rb_ary_new2(num);
|
ary = rb_ary_new2(num);
|
||||||
for(i = 0; i < num; i++){
|
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));
|
rb_ary_push(ary, ossl_ssl_cipher_to_ary(cipher));
|
||||||
}
|
}
|
||||||
return ary;
|
return ary;
|
||||||
|
|
Loading…
Add table
Reference in a new issue