summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2018-01-06 15:00:28 +0900
committerGitHub <noreply@github.com>2018-01-06 15:00:28 +0900
commitf707996f80ab5e63fd584d576b9a39f091b22dca (patch)
treee534e7250e6a255c55b36f70ab7bd05a60f1a2de /test
parentb8b8f74e95854a8db793d8189952a51e5af53dea (diff)
parent769b5575d157aca77b78e44d94ea40ad08e3975e (diff)
downloadruby-openssl-f707996f80ab5e63fd584d576b9a39f091b22dca.tar.gz
Merge pull request #183 from rhenium/ky/pkcs7-decrypt-without-recipients-certificate
pkcs7: allow recipient's certificate to be omitted for PKCS7#decrypt
Diffstat (limited to 'test')
-rw-r--r--test/test_pkcs7.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_pkcs7.rb b/test/test_pkcs7.rb
index 149d3b9b..6437112b 100644
--- a/test/test_pkcs7.rb
+++ b/test/test_pkcs7.rb
@@ -133,6 +133,8 @@ class OpenSSL::TestPKCS7 < OpenSSL::TestCase
assert_equal(@ca_cert.subject.to_s, recip[1].issuer.to_s)
assert_equal(3, recip[1].serial)
assert_equal(data, p7.decrypt(@rsa1024, @ee2_cert))
+
+ assert_equal(data, p7.decrypt(@rsa1024))
end
def test_graceful_parsing_failure #[ruby-core:43250]