ruby/test/openssl
Kazuki Yamaguchi e2bf3659e1 [ruby/openssl] pkcs7: keep private key when duplicating PKCS7_SIGNER_INFO
ASN1_dup() will not copy the 'pkey' field of a PKCS7_SIGNER_INFO object
by design; it is a temporary field kept until the PKCS7 structure is
finalized. Let's bump reference counter of the pkey in the original
object and use it in the new object, too.

This commit also removes PKCS7#add_signer's routine to add the
content-type attribute as a signed attribute automatically. This
behavior was not documented or tested. This change should not break any
working user code since the method was completely useless without the
change above.

https://github.com/ruby/openssl/commit/20ca7a27a8
2021-03-31 18:05:07 +09:00
..
fixtures/pkey openssl: sync with upstream repository 2020-03-10 17:41:01 +09:00
test_asn1.rb [ruby/openssl] Look up digest by name instead of constant 2020-05-13 15:47:51 +09:00
test_bn.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_buffering.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_cipher.rb test/openssl/test_cipher: skip AES-CCM tests on OpenSSL <= 1.1.1b 2021-03-16 22:30:18 +09:00
test_config.rb test/openssl/test_config: skip tests for .include on older OpenSSL 2021-03-16 22:30:33 +09:00
test_digest.rb [ruby/openssl] Look up digest by name instead of constant 2020-05-13 15:47:51 +09:00
test_engine.rb [ruby/openssl] Look up digest by name instead of constant 2020-05-13 15:47:51 +09:00
test_fips.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_hmac.rb [ruby/openssl] hmac: implement base64digest methods 2021-03-16 19:16:11 +09:00
test_kdf.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_ns_spki.rb [ruby/openssl] Look up digest by name instead of constant 2020-05-13 15:47:51 +09:00
test_ocsp.rb [ruby/openssl] Look up digest by name instead of constant 2020-05-13 15:47:51 +09:00
test_ossl.rb [ruby/openssl] Look up digest by name instead of constant 2020-05-13 15:47:51 +09:00
test_pair.rb openssl: sync with upstream repository 2020-03-10 17:41:01 +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 Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_pkey.rb [ruby/openssl] Add compare? method to OpenSSL::PKey that wraps EVP_PKEY_cmp. 2021-03-16 19:16:11 +09:00
test_pkey_dh.rb [ruby/openssl] pkey: add PKey::PKey#derive 2021-03-16 19:16:11 +09:00
test_pkey_dsa.rb [ruby/openssl] Look up digest by name instead of constant 2020-05-13 15:47:51 +09:00
test_pkey_ec.rb [ruby/openssl] pkey/ec: deprecate OpenSSL::PKey::EC::Point#mul(ary, ary [, bn]) 2021-03-16 19:16:11 +09:00
test_pkey_rsa.rb [ruby/openssl] Look up digest by name instead of constant 2020-05-13 15:47:51 +09:00
test_random.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_ssl.rb [ruby/openssl] test: adjust test cases for LibreSSL 3.2.4 2021-03-16 19:37:06 +09:00
test_ssl_session.rb [ruby/openssl] Enhance TLS 1.3 support on LibreSSL 3.2/3.3 2021-03-16 19:37:06 +09:00
test_ts.rb [ruby/openssl] test: adjust test cases for LibreSSL 3.2.4 2021-03-16 19:37:06 +09:00
test_x509attr.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_x509cert.rb [ruby/openssl] Look up digest by name instead of constant 2020-05-13 15:47:51 +09:00
test_x509crl.rb [ruby/openssl] Look up digest by name instead of constant 2020-05-13 15:47:51 +09:00
test_x509ext.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_x509name.rb [ruby/openssl] Look up digest by name instead of constant 2020-05-13 15:47:51 +09:00
test_x509req.rb [ruby/openssl] Look up digest by name instead of constant 2020-05-13 15:47:51 +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 Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
utils.rb [ruby/openssl] test: adjust test cases for LibreSSL 3.2.4 2021-03-16 19:37:06 +09:00