From: nagachika00@... Date: 2021-05-23T06:02:10+00:00 Subject: [ruby-core:103994] [Ruby master Bug#17625] OpenSSL::Timestamp::Response#failure_info does not work as documented Issue #17625 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED, 3.0: REQUIRED to 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED, 3.0: DONE ruby_3_0 fc73fc79cbaee6674256589b7cfe53d20b638a05 merged revision(s) 1ad222477344597038d7ec08885a41f547c2a3b4. ---------------------------------------- Bug #17625: OpenSSL::Timestamp::Response#failure_info does not work as documented https://bugs.ruby-lang.org/issues/17625#change-92131 * 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: DONE ---------------------------------------- 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: