ruby/test/openssl
Jun Aruga 8029ee4176 [ruby/openssl] test_asn1.rb: Remove the assertions of the time string format without second.
This commit fixes the following errors in the tests.
Because the OpenSSL project changed the code to make the time string format
without second invalid. So, we drop the assertions.

```
1) Error: test_generalizedtime(OpenSSL::TestASN1): OpenSSL::ASN1::ASN1Error: generalizedtime is too short
/home/runner/work/ruby-openssl/ruby-openssl/test/openssl/test_asn1.rb:698:in `decode'
/home/runner/work/ruby-openssl/ruby-openssl/test/openssl/test_asn1.rb:698:in `decode_test'
/home/runner/work/ruby-openssl/ruby-openssl/test/openssl/test_asn1.rb:433:in `test_generalizedtime'
     430:       OpenSSL::ASN1::GeneralizedTime.new(Time.utc(9999, 9, 8, 23, 43, 39))
     431:     # LibreSSL 3.6.0 requires the seconds element
     432:     return if libressl?
  => 433:     decode_test B(%w{ 18 0D }) + "201612081934Z".b,
     434:       OpenSSL::ASN1::GeneralizedTime.new(Time.utc(2016, 12, 8, 19, 34, 0))
     435:     # not implemented
     436:     # decode_test B(%w{ 18 13 }) + "2016120819+0930".b,

2) Error: test_utctime(OpenSSL::TestASN1): OpenSSL::ASN1::ASN1Error: utctime is too short
/home/runner/work/ruby-openssl/ruby-openssl/test/openssl/test_asn1.rb:698:in `decode'
/home/runner/work/ruby-openssl/ruby-openssl/test/openssl/test_asn1.rb:698:in `decode_test'
/home/runner/work/ruby-openssl/ruby-openssl/test/openssl/test_asn1.rb:411:in `test_utctime'
     408:     end
     409:     # Seconds is omitted. LibreSSL 3.6.0 requires it
     410:     return if libressl?
  => 411:     decode_test B(%w{ 17 0B }) + "1609082343Z".b,
     412:       OpenSSL::ASN1::UTCTime.new(Time.utc(2016, 9, 8, 23, 43, 0))
     413:     # not implemented
     414:     # decode_test B(%w{ 17 11 }) + "5009082343+0930".b,
```

2e826d5715
2024-05-08 20:12:13 +09:00
..
fixtures/pkey [ruby/openssl] pkey/ec: check private key validity with OpenSSL 3 2022-12-23 09:39:15 +09:00
test_asn1.rb [ruby/openssl] test_asn1.rb: Remove the assertions of the time string format without second. 2024-05-08 20:12:13 +09:00
test_bn.rb [ruby/openssl] add BN#mod_sqrt 2022-10-17 23:38:34 +09:00
test_buffering.rb
test_cipher.rb [ruby/openssl] Allow empty string to OpenSSL::Cipher#update 2022-12-13 18:07:41 +09:00
test_config.rb [ruby/openssl] Fixed misspellings 2021-10-16 18:25:11 +09:00
test_digest.rb [ruby/openssl] test/openssl/test_digest: do not test constants for legacy algorithms 2021-10-23 13:38:37 +09:00
test_engine.rb
test_fips.rb
test_hmac.rb [ruby/openssl] hmac: use EVP_PKEY_new_raw_private_key() if available 2022-10-17 16:35:35 +09:00
test_kdf.rb
test_ns_spki.rb [ruby/openssl] Use SHA256 instead of SHA1 where needed in tests. 2022-12-13 18:07:41 +09:00
test_ocsp.rb [ruby/openssl] Let OpenSSL choose the digest if digest for Openssl::OCSP::BasicResponse#sign is nil. 2022-07-08 23:18:22 +09:00
test_ossl.rb
test_pair.rb [ruby/openssl] test/openssl/test_ssl.rb: do not run SSL tests if not available 2022-12-23 09:39:15 +09:00
test_pkcs7.rb [ruby/openssl] pkcs7: keep private key when duplicating PKCS7_SIGNER_INFO 2021-03-31 18:05:07 +09:00
test_pkcs12.rb [ruby/openssl] test/openssl/test_pkcs12: fix test failures with OpenSSL 3.0 2021-10-23 13:38:38 +09:00
test_pkey.rb [ruby/openssl] test/openssl/test_pkey.rb: allow failures in test_s_generate_parameters 2022-12-23 09:39:15 +09:00
test_pkey_dh.rb [ruby/openssl] pkey: deprecate PKey#set_* methods 2021-12-20 23:42:02 +09:00
test_pkey_dsa.rb [ruby/openssl] Use SHA256 instead of SHA1 where needed in tests. 2022-12-13 18:07:41 +09:00
test_pkey_ec.rb [ruby/openssl] pkey/ec: check private key validity with OpenSSL 3 2022-12-23 09:39:15 +09:00
test_pkey_rsa.rb [ruby/openssl] Use SHA256 instead of SHA1 where needed in tests. 2022-12-13 18:07:41 +09:00
test_random.rb
test_ssl.rb [ruby/openssl] Relax error message check for OpenSSL 3.1 2023-06-13 14:01:57 +09:00
test_ssl_session.rb [ruby/openssl] test/openssl/test_ssl.rb: do not run SSL tests if not available 2022-12-23 09:39:15 +09:00
test_ts.rb [ruby/openssl] fix segv in Timestamp::{Request,Response,TokenInfo}.new 2021-10-16 18:34:35 +09:00
test_x509attr.rb
test_x509cert.rb [ruby/openssl] Use SHA256 instead of SHA1 where needed in tests. 2022-12-13 18:07:41 +09:00
test_x509crl.rb [ruby/openssl] Use SHA256 instead of SHA1 where needed in tests. 2022-12-13 18:07:41 +09:00
test_x509ext.rb
test_x509name.rb
test_x509req.rb [ruby/openssl] Use SHA256 instead of SHA1 where needed in tests. 2022-12-13 18:07:41 +09:00
test_x509store.rb [ruby/openssl] test: adjust test cases for LibreSSL 3.2.4 2021-03-16 19:37:06 +09:00
ut_eof.rb [ruby/openssl] Add SSLSocket#getbyte 2021-07-18 17:44:53 +09:00
utils.rb [ruby/openssl] test/openssl/test_ssl: assume ECC support 2021-10-23 13:38:37 +09:00