From: midnight_w@... Date: 2021-02-14T08:06:04+00:00 Subject: [ruby-core:102483] [Ruby master Bug#17625] OpenSSL::Timestamp::Response#failure_info does not work as documented Issue #17625 has been updated by midnight (Sarun R). I want to help try out the patch. However, I have issues compiling Ruby from the source. It somewhat deviates from the main topic, but here I go anyway. I followed compiling instructions from the README and got an error that I do not understand after running `make`. > linking shared-object bigdecimal.so /usr/bin/ld: bigdecimal.o: relocation R_X86_64_PC32 against undefined symbol `rb_eArgError' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status Does anybody have a clue of what I should look into? P.S. if you have something to discuss regarding the main topic, please continue. ---------------------------------------- Bug #17625: OpenSSL::Timestamp::Response#failure_info does not work as documented https://bugs.ruby-lang.org/issues/17625#change-90375 * 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. ---Files-------------------------------- ruby-openssl-ossl_ts-symbols.patch (1.64 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: