[#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:102485] [Ruby master Bug#17625] OpenSSL::Timestamp::Response#failure_info does not work as documented
From:
nobu@...
Date:
2021-02-14 09:29:47 UTC
List:
ruby-core #102485
Issue #17625 has been updated by nobu (Nobuyoshi Nakada).
Backport changed from 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN to 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED, 3.0: REQUIRED
Status changed from Open to Closed
Merged the patch at [ruby/openssl@f2d004679a](https://github.com/ruby/openssl/commit/f2d004679a62408a89d7304b229c24e789b94776).
----------------------------------------
Bug #17625: OpenSSL::Timestamp::Response#failure_info does not work as documented
https://bugs.ruby-lang.org/issues/17625#change-90377
* Author: midnight (Sarun R)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]
* Backport: 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED, 3.0: REQUIRED
----------------------------------------
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.
---Files--------------------------------
ruby-openssl-ossl_ts-symbols.patch (1.64 KB)
--
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>