ruby/test/openssl
Kazuki Yamaguchi 1b731c1f43 [ruby/openssl] pkey: avoid calling i2d_PUBKEY family on an incomplete key
Call ossl_pkey_check_public_key() to ensure that
EVP_PKEY_missing_parameters() passes. This check should be cheap.

DSA#{to_der,to_pem,export,to_s} and PKey#{public_to_der,public_to_pem}
cause a segfault if the receiver is an empty DSA instance with no
parameters set.

Fixes <https://github.com/ruby/openssl/issues/845>.

5aeed935e5
2025-01-29 17:14:41 +00:00
..
fixtures/pkey [ruby/openssl] pkey/ec: use heredoc for invalid key example in test cases 2025-01-06 17:07:56 +00:00
test_asn1.rb asn1: fix ObjectId#== 2024-11-14 11:21:39 +09:00
test_bn.rb [ruby/openssl] make bn shareable when frozen 2024-11-13 07:25:51 +00:00
test_buffering.rb [ruby/openssl] Refactor buffer usage to only use append_as_bytes 2025-01-14 11:54:47 +00:00
test_cipher.rb [ruby/openssl] cipher: make output buffer String independent 2024-12-22 03:33:03 +09:00
test_config.rb [ruby/openssl] make configs shareable when frozen 2024-12-07 07:52:02 +00:00
test_digest.rb [ruby/openssl] Add OpenSSL::Digest.digests to get a list of available digests 2024-04-30 15:05:50 +00:00
test_engine.rb
test_fips.rb [ruby/openssl] test_fips.rb: Fix the OpenSSL.fips_mode affecting other tests. 2023-09-21 18:04:55 +00:00
test_hmac.rb
test_kdf.rb [ruby/openssl] Require OpenSSL 1.1.0 or later 2025-01-20 17:12:57 +00:00
test_ns_spki.rb [ruby/openssl] Prefer String#unpack1 2023-09-06 19:24:53 +09:00
test_ocsp.rb [ruby/openssl] test/openssl/test_ocsp.rb: fix flaky test 2024-01-17 17:13:16 +00:00
test_ossl.rb [ruby/openssl] test/openssl/test_ossl.rb: use clock_gettime for measuring time 2025-01-29 17:14:40 +00:00
test_pair.rb [ruby/openssl] Add SSLSocket#readbyte 2024-07-03 08:54:18 +00:00
test_pkcs7.rb [ruby/openssl] pkcs7: remove default cipher from PKCS7.encrypt 2024-10-31 08:31:16 +00:00
test_pkcs12.rb [ruby/openssl] pkcs12: add PKCS12#set_mac 2024-12-22 03:33:03 +09:00
test_pkey.rb [ruby/openssl] Require OpenSSL 1.1.1 or later 2025-01-21 18:14:14 +00:00
test_pkey_dh.rb [ruby/openssl] pkey: change PKey::{RSA,DSA,DH}#params to use nil for missing parameters 2025-01-23 01:45:52 +09:00
test_pkey_dsa.rb [ruby/openssl] pkey: avoid calling i2d_PUBKEY family on an incomplete key 2025-01-29 17:14:41 +00:00
test_pkey_ec.rb [ruby/openssl] pkey/ec: use heredoc for invalid key example in test cases 2025-01-06 17:07:56 +00:00
test_pkey_rsa.rb [ruby/openssl] pkey: change PKey::{RSA,DSA,DH}#params to use nil for missing parameters 2025-01-23 01:45:52 +09:00
test_provider.rb [ruby/openssl] Fix test_provider.rb in FIPS. 2024-09-06 16:58:18 +00:00
test_random.rb
test_ssl.rb [ruby/openssl] ssl: fix SSLSocket#sysread leaking locktmp String on timeout 2025-01-22 16:45:19 +00:00
test_ssl_session.rb [ruby/openssl] Require OpenSSL 1.1.1 or later 2025-01-21 18:14:14 +00:00
test_ts.rb [ruby/openssl] Add to_text for PKCS7 and Timestamp::Response 2024-05-08 09:39:13 +00:00
test_x509attr.rb [ruby/openssl] x509attr: avoid using OpenSSL::ASN1 internals in #value= 2024-07-24 16:50:01 +00:00
test_x509cert.rb [ruby/openssl] Require OpenSSL 1.1.1 or later 2025-01-21 18:14:14 +00:00
test_x509crl.rb [ruby/openssl] Require OpenSSL 1.1.1 or later 2025-01-21 18:14:14 +00:00
test_x509ext.rb [ruby/openssl] Exact checks with assert_include 2023-10-06 09:45:20 +00:00
test_x509name.rb
test_x509req.rb [ruby/openssl] Require OpenSSL 1.1.1 or later 2025-01-21 18:14:14 +00:00
test_x509store.rb [ruby/openssl] Require OpenSSL 1.1.0 or later 2025-01-20 17:12:57 +00:00
ut_eof.rb [ruby/openssl] Add SSLSocket#readbyte 2024-07-03 08:54:18 +00:00
utils.rb [ruby/openssl] Require OpenSSL 1.1.1 or later 2025-01-21 18:14:14 +00:00