1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--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
test_asn1.rb
test_bn.rb
test_buffering.rb
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
test_engine.rb
test_fips.rb
test_hmac.rb [ruby/openssl] hmac: implement base64digest methods 2021-03-16 19:16:11 +09:00
test_kdf.rb
test_ns_spki.rb
test_ocsp.rb
test_ossl.rb
test_pair.rb
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
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
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
test_random.rb
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
test_x509cert.rb
test_x509crl.rb
test_x509ext.rb
test_x509name.rb
test_x509req.rb
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
utils.rb [ruby/openssl] test: adjust test cases for LibreSSL 3.2.4 2021-03-16 19:37:06 +09:00