From 0cc7e31ad157939b4d5454b36c7d963c77c50e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 9 Jun 2014 11:36:47 +0200 Subject: [PATCH] Add test for ssl_set_dh_param_ctx() --- tests/ssl-opt.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index f4fbc019b..a9d6e4d17 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -1243,6 +1243,25 @@ run_test "extKeyUsage cli-auth #4b (codeSign -> fail (hard))" \ -s "bad certificate (usage extensions)" \ -s "Processing of the Certificate handshake message failed" +# Tests for DHM parameters loading + +run_test "DHM parameters #0 (reference)" \ + "$P_SRV" \ + "$P_CLI force_ciphersuite=TLS-DHE-RSA-WITH-AES-128-CBC-SHA \ + debug_level=3" \ + 0 \ + -c "value of 'DHM: P ' (2048 bits)" \ + -c "value of 'DHM: G ' (2048 bits)" + +run_test "DHM parameters #1 (other parameters)" \ + "$P_SRV dhm_file=data_files/dhparams.pem" \ + "$P_CLI force_ciphersuite=TLS-DHE-RSA-WITH-AES-128-CBC-SHA \ + debug_level=3" \ + 0 \ + -c "value of 'DHM: P ' (1024 bits)" \ + -c "value of 'DHM: G ' (2 bits)" + + # Final report echo "------------------------------------------------------------------------"