aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-10-19 11:01:50 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-10-19 11:11:47 +0900
commit4cf2074148f658ec7c57c70f3e9d447991ae5c32 (patch)
tree0db7f60bfb5a71f1c2132461f93c192bc8c0c3f1
parentbb10767b0570d44f240632a7399c882764a48649 (diff)
downloadruby-openssl-ky/cipher-non-aead-auth-data.tar.gz
test/test_cipher: fix test_non_aead_cipher_set_auth_data failureky/cipher-non-aead-auth-data
A follow-up to commit bb10767b0570 ("cipher: disallow setting AAD for non-AEAD ciphers", 2017-10-18). Cipher#auth_data= raises NotImplementedError if built with OpenSSL < 1.0.1.
-rw-r--r--test/test_cipher.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_cipher.rb b/test/test_cipher.rb
index 216eeded..48149d41 100644
--- a/test/test_cipher.rb
+++ b/test/test_cipher.rb
@@ -302,7 +302,7 @@ class OpenSSL::TestCipher < OpenSSL::TestCase
cipher = OpenSSL::Cipher.new("aes-128-cfb").encrypt
cipher.auth_data = "123"
}
- end
+ end if has_cipher?("aes-128-gcm")
private