diff options
author | Ingela Anderton Andin <[email protected]> | 2017-10-26 11:28:11 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2017-10-26 11:28:11 +0200 |
commit | baec492a2ca629ec36e8586e80df6f07fea5063b (patch) | |
tree | cbb6cb7ac0e455305b864cf32937c77a6418e907 /lib/public_key/test | |
parent | 20af6471398302330073f9ee8325bc018e5959bf (diff) | |
download | otp-baec492a2ca629ec36e8586e80df6f07fea5063b.tar.gz otp-baec492a2ca629ec36e8586e80df6f07fea5063b.tar.bz2 otp-baec492a2ca629ec36e8586e80df6f07fea5063b.zip |
public_key: Check that ec curve used for test is supported
Diffstat (limited to 'lib/public_key/test')
-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); |