diff options
| author | Hans Nilsson <[email protected]> | 2015-11-24 11:50:23 +0100 | 
|---|---|---|
| committer | Hans Nilsson <[email protected]> | 2015-11-24 11:50:23 +0100 | 
| commit | d56fda8a730ff43bdfc15936519effb61fbd03e3 (patch) | |
| tree | 28a79c341eec2664fa208324d487906c8b23f9b1 /lib/ssh/test | |
| parent | 87d29a0bc06345a2e72702a87f200bb5de85ab10 (diff) | |
| parent | 3c68f93ff05bad90550407dc1eb316547227bfa7 (diff) | |
| download | otp-d56fda8a730ff43bdfc15936519effb61fbd03e3.tar.gz otp-d56fda8a730ff43bdfc15936519effb61fbd03e3.tar.bz2 otp-d56fda8a730ff43bdfc15936519effb61fbd03e3.zip | |
Merge branch 'hans/ssh/aes_gcm_crypto/OTP-13018' into maint
* hans/ssh/aes_gcm_crypto/OTP-13018:
  ssh: fix dialyzer reported error
  ssh: renegotiate test group for AES_GCM
  ssh: documentation updates
  ssh: AEAD_AES_(128|256)_GCM and aes(128|256)[email protected] crypto
  ssh: refactor packet reception
Diffstat (limited to 'lib/ssh/test')
| -rw-r--r-- | lib/ssh/test/ssh_renegotiate_SUITE.erl | 22 | ||||
| -rw-r--r-- | lib/ssh/test/ssh_test_lib.erl | 10 | 
2 files changed, 25 insertions, 7 deletions
| diff --git a/lib/ssh/test/ssh_renegotiate_SUITE.erl b/lib/ssh/test/ssh_renegotiate_SUITE.erl index ef631d54bd..227dfcddcd 100644 --- a/lib/ssh/test/ssh_renegotiate_SUITE.erl +++ b/lib/ssh/test/ssh_renegotiate_SUITE.erl @@ -32,9 +32,15 @@  suite() -> [{ct_hooks,[ts_install_cth]}]. -all() -> [rekey, rekey_limit, renegotiate1, renegotiate2]. +all() -> [{group,default_algs}, +	  {group,aes_gcm} +	 ]. -groups() -> []. +groups() -> [{default_algs, [], tests()}, +	     {aes_gcm,      [], tests()} +	    ]. + +tests() -> [rekey, rekey_limit, renegotiate1, renegotiate2].  %%--------------------------------------------------------------------  init_per_suite(Config) -> @@ -50,6 +56,18 @@ end_per_suite(_Config) ->      crypto:stop().  %%-------------------------------------------------------------------- +init_per_group(aes_gcm, Config) -> +    [{preferred_algorithms, [{cipher,[{client2server,['[email protected]']}, +				      {server2client,['[email protected]']}]}]} +     | Config]; +init_per_group(_, Config) -> +    [{preferred_algorithms, ssh:default_algorithms()} | Config]. + + +end_per_group(_, Config) -> +    Config. + +%%--------------------------------------------------------------------  init_per_testcase(_TestCase, Config) ->      ssh:start(),      Config. diff --git a/lib/ssh/test/ssh_test_lib.erl b/lib/ssh/test/ssh_test_lib.erl index 5816b708f2..424afc76fe 100644 --- a/lib/ssh/test/ssh_test_lib.erl +++ b/lib/ssh/test/ssh_test_lib.erl @@ -296,7 +296,7 @@ setup_dsa(DataDir, UserDir) ->      file:make_dir(System),      file:copy(filename:join(DataDir, "ssh_host_dsa_key"), filename:join(System, "ssh_host_dsa_key")),      file:copy(filename:join(DataDir, "ssh_host_dsa_key.pub"), filename:join(System, "ssh_host_dsa_key.pub")), -ct:pal("DataDir ~p:~n ~p~n~nSystDir ~p:~n ~p~n~nUserDir ~p:~n ~p",[DataDir, file:list_dir(DataDir), System, file:list_dir(System), UserDir, file:list_dir(UserDir)]), +ct:log("DataDir ~p:~n ~p~n~nSystDir ~p:~n ~p~n~nUserDir ~p:~n ~p",[DataDir, file:list_dir(DataDir), System, file:list_dir(System), UserDir, file:list_dir(UserDir)]),      setup_dsa_known_host(DataDir, UserDir),      setup_dsa_auth_keys(DataDir, UserDir). @@ -306,7 +306,7 @@ setup_rsa(DataDir, UserDir) ->      file:make_dir(System),      file:copy(filename:join(DataDir, "ssh_host_rsa_key"), filename:join(System, "ssh_host_rsa_key")),      file:copy(filename:join(DataDir, "ssh_host_rsa_key.pub"), filename:join(System, "ssh_host_rsa_key.pub")), -ct:pal("DataDir ~p:~n ~p~n~nSystDir ~p:~n ~p~n~nUserDir ~p:~n ~p",[DataDir, file:list_dir(DataDir), System, file:list_dir(System), UserDir, file:list_dir(UserDir)]), +ct:log("DataDir ~p:~n ~p~n~nSystDir ~p:~n ~p~n~nUserDir ~p:~n ~p",[DataDir, file:list_dir(DataDir), System, file:list_dir(System), UserDir, file:list_dir(UserDir)]),      setup_rsa_known_host(DataDir, UserDir),      setup_rsa_auth_keys(DataDir, UserDir). @@ -316,7 +316,7 @@ setup_ecdsa(Size, DataDir, UserDir) ->      file:make_dir(System),      file:copy(filename:join(DataDir, "ssh_host_ecdsa_key"++Size), filename:join(System, "ssh_host_ecdsa_key")),      file:copy(filename:join(DataDir, "ssh_host_ecdsa_key"++Size++".pub"), filename:join(System, "ssh_host_ecdsa_key.pub")), -ct:pal("DataDir ~p:~n ~p~n~nSystDir ~p:~n ~p~n~nUserDir ~p:~n ~p",[DataDir, file:list_dir(DataDir), System, file:list_dir(System), UserDir, file:list_dir(UserDir)]), +ct:log("DataDir ~p:~n ~p~n~nSystDir ~p:~n ~p~n~nUserDir ~p:~n ~p",[DataDir, file:list_dir(DataDir), System, file:list_dir(System), UserDir, file:list_dir(UserDir)]),      setup_ecdsa_known_host(Size, System, UserDir),      setup_ecdsa_auth_keys(Size, UserDir, UserDir). @@ -502,7 +502,7 @@ default_algorithms(sshd, Host, Port) ->  				  {user_interaction, false}]}]))      catch  	_C:_E -> -	    ct:pal("***~p:~p: ~p:~p",[?MODULE,?LINE,_C,_E]), +	    ct:log("***~p:~p: ~p:~p",[?MODULE,?LINE,_C,_E]),  	    []      end. @@ -522,7 +522,7 @@ default_algorithms(sshc, DaemonOptions) ->  						    InitialState))  		       catch  			   _C:_E -> -			       ct:pal("***~p:~p: ~p:~p",[?MODULE,?LINE,_C,_E]), +			       ct:log("***~p:~p: ~p:~p",[?MODULE,?LINE,_C,_E]),  			       []  		       end}  	  end), | 
