[#18121] [Ruby 1.8.7 - Bug #405] (Open) ssl.rb:31: [BUG] Bus Error — Anonymous <redmine@...>

Issue #405 has been reported by Anonymous.

14 messages 2008/08/04

[#18130] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Brian Candler <B.Candler@...>

> Seriously though... Array.first is a noun.

10 messages 2008/08/05

[#18319] NEW Command: absolute_path() -- — "C.E. Thornton" <admin@...>

Core,

14 messages 2008/08/16
[#18321] Re: NEW Command: absolute_path() -- — Yukihiro Matsumoto <matz@...> 2008/08/18

Hi,

[#18381] [Bug #496] DRb.start_service(nil) is very slow — Hongli Lai <redmine@...>

Bug #496: DRb.start_service(nil) is very slow

11 messages 2008/08/25

[ruby-core:18411] [Bug #514] OpenSSL::OCSP::Response's to_der always returns an empty string

From: Chris Chandler <redmine@...>
Date: 2008-08-28 06:10:32 UTC
List: ruby-core #18411
Bug #514: OpenSSL::OCSP::Response's to_der always returns an empty string
http://redmine.ruby-lang.org/issues/show/514

Author: Chris Chandler
Status: Open, Priority: Normal

The OCSP response object always seems to produce an empty string when to_der is called.  The correct response should be a properly encoded DER response similar to the behavior of the other OpenSSL objects that implement to_der.

The problem appears to be on the call to i2d_OCSP_RESPONSE on line 382 (taken from SVN) in ossl_ocsp.c.  Instead of passing NULL as the second argument, it should be &p.  I have made the change locally and confirmed the output contains what appears to be the correctly formatted DER string.  I have also attached the recommended patch.  This bug is also present in the latest 1.9 build.


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

In This Thread

Prev Next