Project

General

Profile

Actions

Bug #17625

closed

OpenSSL::Timestamp::Response#failure_info does not work as documented

Added by midnight (Sarun R) almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]
[ruby-core:102475]

Description

I was playing around with OpenSSL::Timestamp and found that #failure_info does not work as documented.
Here what's the document says.

failure_info → nil or symbol

However, the method returns Interger instead, neither nil nor symbol returned.
Here's some test case:

identrust_ts_response = ::Base64.decode64('MCIwIAIBAjAXDBVJbnZhbGlkIFRpbWVTdGFtcFJlcS4DAgaA')
parsed_response = ::OpenSSL::Timestamp::Response.new(identrust_ts_response)
parsed_response.failure_info

The response is the actual one from IdenTrust timestamp server.


Files

ruby-openssl-ossl_ts-symbols.patch (1.64 KB) ruby-openssl-ossl_ts-symbols.patch xtkoba (Tee KOBAYASHI), 02/13/2021 02:51 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0