[#102652] [Ruby master Bug#17664] Behavior of sockets changed in Ruby 3.0 to non-blocking — ciconia@...
Issue #17664 has been reported by ciconia (Sharon Rosner).
23 messages
2021/02/28
[ruby-core:102475] [Ruby master Bug#17625] OpenSSL::Timestamp::Response#failure_info does not work as documented
From:
midnight_w@...
Date:
2021-02-13 06:35:18 UTC
List:
ruby-core #102475
Issue #17625 has been reported by midnight (Sarun R).
----------------------------------------
Bug #17625: OpenSSL::Timestamp::Response#failure_info does not work as documented
https://bugs.ruby-lang.org/issues/17625
* Author: midnight (Sarun R)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
I was playing around with `OpenSSL::Timestamp` and found that `#failure_info` does not work as documented.
Here what's [the document](https://ruby-doc.org/stdlib-3.0.0/libdoc/openssl/rdoc/OpenSSL/Timestamp/Response.html#method-i-failure_info) says.
> failure_info → nil or symbol
However, the method returns `Interger` instead, neither nil nor symbol returned.
Here's some test case:
~~~ruby
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.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>