diff options
author | Ingela Anderton Andin <[email protected]> | 2017-10-27 11:42:24 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2017-10-27 11:42:24 +0200 |
commit | 1f34276d88c1bbbff29fbd0e38210608e17cc0be (patch) | |
tree | 7c1deb75fd6d6672c034b6d855160cb984b71e1b /lib | |
parent | cea1ce62fb6870e82fe0b333a318ec5c1aac76f1 (diff) | |
parent | f3d069dd1e3978b240c0f99c5609735e72ea8e8c (diff) | |
download | otp-1f34276d88c1bbbff29fbd0e38210608e17cc0be.tar.gz otp-1f34276d88c1bbbff29fbd0e38210608e17cc0be.tar.bz2 otp-1f34276d88c1bbbff29fbd0e38210608e17cc0be.zip |
Merge branch 'maint'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public_key/test/public_key_SUITE.erl | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/lib/public_key/test/public_key_SUITE.erl b/lib/public_key/test/public_key_SUITE.erl index 579df160bc..38e8f30a25 100644 --- a/lib/public_key/test/public_key_SUITE.erl +++ b/lib/public_key/test/public_key_SUITE.erl @@ -97,14 +97,27 @@ end_per_group(_GroupName, Config) -> Config. %%------------------------------------------------------------------- -init_per_testcase(Case, Config) when Case == pkix_test_data_all_default; - Case == gen_ec_param -> +init_per_testcase(pkix_test_data_all_default, Config) -> case crypto:ec_curves() of [] -> {skip, missing_ecc_support}; _ -> - init_common_per_testcase(Config) + init_common_per_testcase(Config) end; + +init_per_testcase(gen_ec_param, Config) -> + case crypto:ec_curves() of + [] -> + {skip, missing_ecc_support}; + Curves -> + case lists:member(secp521r1, Curves) of + true -> + init_common_per_testcase(Config); + false -> + {skip, missing_ecc_secp52r1_support} + end + end; + init_per_testcase(TestCase, Config) -> case TestCase of ssh_hostkey_fingerprint_md5_implicit -> init_fingerprint_testcase([md5], Config); |