diff options
author | Hans Nilsson <[email protected]> | 2018-11-16 16:16:17 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2018-11-30 14:51:43 +0100 |
commit | 21c3fbcbbd2971d8a7af0212162045ab778ab0eb (patch) | |
tree | e71b0dcfb4615a58da8720207094dd9339055e06 /lib/ssh | |
parent | dfce5316948c5085e659a9c5fefb10ff8fcdf959 (diff) | |
download | otp-21c3fbcbbd2971d8a7af0212162045ab778ab0eb.tar.gz otp-21c3fbcbbd2971d8a7af0212162045ab778ab0eb.tar.bz2 otp-21c3fbcbbd2971d8a7af0212162045ab778ab0eb.zip |
crypto: Update test engine with fake rsa support
We need to test the Engine interface not only for loading, key retrieval and hashing,
so it is complemented with a fake rsa method to check sign/verify also.
Diffstat (limited to 'lib/ssh')
-rw-r--r-- | lib/ssh/test/ssh_engine_SUITE.erl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/ssh/test/ssh_engine_SUITE.erl b/lib/ssh/test/ssh_engine_SUITE.erl index c2e6ac1fee..3adb23acdb 100644 --- a/lib/ssh/test/ssh_engine_SUITE.erl +++ b/lib/ssh/test/ssh_engine_SUITE.erl @@ -126,10 +126,17 @@ simple_connect(Config) -> load_engine() -> case crypto:get_test_engine() of {ok, Engine} -> - try crypto:engine_load(<<"dynamic">>, + try + %% The test engine has it's own fake rsa sign/verify that + %% you don't want to use, so exclude it from methods to load: + Methods = + crypto:engine_get_all_methods() -- [engine_method_rsa], + crypto:engine_load(<<"dynamic">>, [{<<"SO_PATH">>, Engine}, <<"LOAD">>], - []) + [], + Methods + ) catch error:notsup -> {error, notsup} |