Actions
Bug #17625
closedOpenSSL::Timestamp::Response#failure_info does not work as documented
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]
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
Actions
Like0
Like0Like0Like0Like0