diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-09 21:11:55 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-09 21:21:11 +0900 |
commit | 635c9e49553746dd487fa28884387895ee6c0d77 (patch) | |
tree | 7ea770e2224742ea5d7a71d84c031608b8ecd919 /test | |
parent | 7ce8c43a671df93538aaa42363451b5869da50ea (diff) | |
download | ruby-openssl-635c9e49553746dd487fa28884387895ee6c0d77.tar.gz |
x509crl: fix CRL#revoked=
Fixes cad3226a06a1 (openssl: adapt to OpenSSL 1.1.0 opaque structs,
2016-06-05).
Diffstat (limited to 'test')
-rw-r--r-- | test/test_x509crl.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_x509crl.rb b/test/test_x509crl.rb index fd66c975..cd1ccc98 100644 --- a/test/test_x509crl.rb +++ b/test/test_x509crl.rb @@ -112,6 +112,10 @@ class OpenSSL::TestX509CRL < OpenSSL::TestCase assert_equal(1000, revoked.size) assert_equal(1, revoked[0].serial) assert_equal(1000, revoked[999].serial) + + crl.revoked = revoked + revoked2 = crl.revoked + assert_equal(revoked.map(&:serial), revoked2.map(&:serial)) end def test_extension |