Add test for ssl_set_dh_param_ctx()

This commit is contained in:
Manuel Pégourié-Gonnard 2014-06-09 11:36:47 +02:00
parent 736699c08c
commit 0cc7e31ad1

View file

@ -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 "------------------------------------------------------------------------"