diff options
Diffstat (limited to 'test/openssl/test_cipher.rb')
-rw-r--r-- | test/openssl/test_cipher.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/openssl/test_cipher.rb b/test/openssl/test_cipher.rb index 3652f9ca74..ef8c4f3a4a 100644 --- a/test/openssl/test_cipher.rb +++ b/test/openssl/test_cipher.rb @@ -212,6 +212,12 @@ class OpenSSL::TestCipher < OpenSSL::TestCase ct2 = ct[0..-2] << ct[-1].succ cipher = new_decryptor("aes-128-ccm", **kwargs, ccm_data_len: ct2.length, auth_tag: tag, auth_data: aad) assert_raise(OpenSSL::Cipher::CipherError) { cipher.update(ct2) } + rescue OpenSSL::Cipher::CipherError + if /mingw/i =~ RUBY_PLATFORM + omit "skip on OpenSSL::Cipher::CipherError from 'ccm_data_len=': Maybe it's because of OpenSSL in MinGW" + else + raise + end end if has_cipher?("aes-128-ccm") && OpenSSL::Cipher.new("aes-128-ccm").authenticated? && OpenSSL::OPENSSL_VERSION_NUMBER >= 0x1010103f # version >= 1.1.1c |