Project

General

Profile

Actions

Bug #514

closed

OpenSSL::OCSP::Response's to_der always returns an empty string

Added by squanderingtime (Chris Chandler) about 16 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
Backport:
[ruby-core:18411]

Description

=begin
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.
=end


Files

ruby-changes.patch (462 Bytes) ruby-changes.patch squanderingtime (Chris Chandler), 08/28/2008 03:15 PM
Actions #1

Updated by shyouhei (Shyouhei Urabe) almost 16 years ago

  • Assignee set to gotoyuzo (GOTOU Yuuzou)

=begin

=end

Actions #2

Updated by marcandre (Marc-Andre Lafortune) about 15 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r25019.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0