Skip to content

Commit 4cf2074

Browse files
committed
test/test_cipher: fix test_non_aead_cipher_set_auth_data failure
A follow-up to commit bb10767 ("cipher: disallow setting AAD for non-AEAD ciphers", 2017-10-18). Cipher#auth_data= raises NotImplementedError if built with OpenSSL < 1.0.1.
1 parent bb10767 commit 4cf2074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_cipher.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def test_non_aead_cipher_set_auth_data
302302
cipher = OpenSSL::Cipher.new("aes-128-cfb").encrypt
303303
cipher.auth_data = "123"
304304
}
305-
end
305+
end if has_cipher?("aes-128-gcm")
306306

307307
private
308308

0 commit comments

Comments
 (0)