aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/test
diff options
context:
space:
mode:
authorPetr Gotthard <[email protected]>2016-08-12 07:58:45 -0700
committerPetr Gotthard <[email protected]>2016-08-12 07:58:45 -0700
commit6040f48e0adbd5e70e3dfdbf50618cd451410935 (patch)
tree62574e413177ea43a96b8c83f88c1110c067bd6f /lib/crypto/test
parent080dc3a6d3bc09fd95f7d5b10a861f7d34360f8c (diff)
downloadotp-6040f48e0adbd5e70e3dfdbf50618cd451410935.tar.gz
otp-6040f48e0adbd5e70e3dfdbf50618cd451410935.tar.bz2
otp-6040f48e0adbd5e70e3dfdbf50618cd451410935.zip
Skip the cmac test cases on older OpenSSL
Diffstat (limited to 'lib/crypto/test')
-rw-r--r--lib/crypto/test/crypto_SUITE.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl
index 90514821a8..c445b465c7 100644
--- a/lib/crypto/test/crypto_SUITE.erl
+++ b/lib/crypto/test/crypto_SUITE.erl
@@ -152,6 +152,14 @@ end_per_group(_GroupName, Config) ->
init_per_testcase(info, Config) ->
Config;
+init_per_testcase(cmac, Config) ->
+ case crypto:info_lib() of
+ [{<<"OpenSSL">>,LibVer,_}] when is_integer(LibVer), LibVer > 16#10001000 ->
+ Config;
+ _Else ->
+ % The CMAC functionality was introduced in OpenSSL 1.0.1
+ {skip, "OpenSSL is too old"}
+ end;
init_per_testcase(_Name,Config) ->
Config.