Issue #4919 has been updated by Martin Bosslet.


Hiroshi NAKAMURA wrote:

>  Aaaaarhg! Sorry, 2**31 is not in a signed long value. Miserable me...
>  Fixed at r32212.

No problem, works fine now. Happens to the best of us ;)

>  >>>>2) Anyone else getting the "sslv3 alert illegal parameter"? I get it most of the time but not always...
>  >>> I can't get this error on Ubuntu 10.4 with openssl(0.9.8k-7ubuntu).
>  >>
>  >> Please file it.
>  >
>  > Just wanted to do that, but it seems it's fixed in 32211 - can't
>  > reproduce it anymore :)
>  
>  Indeed? I don't think fixes of today affect SSL negotiation... Please
>  file a new ticket when you get kind of SSL error next time. Log dump
>  (w/o reproducible script) is far better than nothing.

I was finally able to reproduce it, although with a different error message this time. Cf. http://redmine.ruby-lang.org/issues/4923. I suspect it could be related to OpenSSL 1.0.0, since I could not reproduce it with 0.9.8k.

Regards,
Martin
----------------------------------------
Bug #4919: OpenSSL::SSL::Sesssion#time= ??? Bignum ???羝<????? ArgumentError ?????榊????????
http://redmine.ruby-lang.org/issues/4919

Author: Tomoyuki Chikanaga
Status: Closed
Priority: Normal
Assignee: 
Category: ext
Target version: 1.9.2
ruby -v: -


?イ蕁??????????????宴?? make test-all TESTS="-v openssl/test_ssl_session.rb" ???絎?茵?????????? 1E ???????障?????

  1) Error:
test_session(OpenSSL::TestSSLSession):
ArgumentError: unknown type
    /opt/ruby-trunk/src/ruby/test/openssl/test_ssl_session.rb:21:in `time='
    /opt/ruby-trunk/src/ruby/test/openssl/test_ssl_session.rb:21:in `block in test_session'
    /opt/ruby-trunk/src/ruby/test/openssl/utils.rb:280:in `call'
    /opt/ruby-trunk/src/ruby/test/openssl/utils.rb:280:in `start_server'
    /opt/ruby-trunk/src/ruby/test/openssl/test_ssl_session.rb:7:in `test_session'

32bit ?????????? Time.now.to_i ??? Bignum ????????OpenSSL::SSL::Sesssion#time= ????????????????若?????綣??????????с?????

?????????????篁ヤ???????????? Bignum ??????篁????????????????????帥??????????????鴻?????Error??????帥???????障????????

--- a/ext/openssl/ossl_ssl_session.c
+++ b/ext/openssl/ossl_ssl_session.c
@@ -149,7 +149,7 @@ static VALUE ossl_ssl_session_get_timeout(VALUE self)
                                                                              \
                if (rb_obj_is_instance_of(time_v, rb_cTime)) {                \
                        time_v = rb_funcall(time_v, rb_intern("to_i"), 0);    \
-               } else if (FIXNUM_P(time_v)) {                                \
+               } else if (FIXNUM_P(time_v) || TYPE(time_v) == T_BIGNUM) {     \
                        ;                                                     \
                } else {                                                      \
                        rb_raise(rb_eArgError, "unknown type");               \



-- 
http://redmine.ruby-lang.org