aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/test/crypto_SUITE.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2019-03-18 17:42:32 +0100
committerHans Nilsson <[email protected]>2019-03-21 14:46:30 +0100
commitb9a3cdd55a42c3f20798a0dbdea620cfa47cc68e (patch)
tree9756177d07cf06084e3f96c535fd8c4c3df829db /lib/crypto/test/crypto_SUITE.erl
parent2bd5ed8f2ec254e637605d0a8bc081fc88faf1ed (diff)
downloadotp-b9a3cdd55a42c3f20798a0dbdea620cfa47cc68e.tar.gz
otp-b9a3cdd55a42c3f20798a0dbdea620cfa47cc68e.tar.bz2
otp-b9a3cdd55a42c3f20798a0dbdea620cfa47cc68e.zip
crypto: Test suite fix for unavailable CMAC
Diffstat (limited to 'lib/crypto/test/crypto_SUITE.erl')
-rw-r--r--lib/crypto/test/crypto_SUITE.erl9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl
index 7dbbde68e9..5aa19a6ae0 100644
--- a/lib/crypto/test/crypto_SUITE.erl
+++ b/lib/crypto/test/crypto_SUITE.erl
@@ -323,12 +323,11 @@ 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 ->
+ case is_supported(cmac) of
+ true ->
Config;
- _Else ->
- % The CMAC functionality was introduced in OpenSSL 1.0.1
- {skip, "OpenSSL is too old"}
+ false ->
+ {skip, "CMAC is not supported"}
end;
init_per_testcase(generate, Config) ->
case proplists:get_value(type, Config) of