From 6040f48e0adbd5e70e3dfdbf50618cd451410935 Mon Sep 17 00:00:00 2001 From: Petr Gotthard Date: Fri, 12 Aug 2016 07:58:45 -0700 Subject: Skip the cmac test cases on older OpenSSL --- lib/crypto/test/crypto_SUITE.erl | 8 ++++++++ 1 file changed, 8 insertions(+) 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. -- cgit v1.2.3