mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-08 10:09:54 +00:00
Add test for configuration specific CRT callback
This commit is contained in:
parent
f345bafd30
commit
ee11be6572
|
@ -1008,7 +1008,21 @@ run_test "Unique IV in GCM" \
|
||||||
-u "IV used" \
|
-u "IV used" \
|
||||||
-U "IV used"
|
-U "IV used"
|
||||||
|
|
||||||
# Test for context-specific CRT verification callback
|
# Tests for certificate verification callback
|
||||||
|
run_test "Configuration-specific CRT verification callback" \
|
||||||
|
"$P_SRV debug_level=3" \
|
||||||
|
"$P_CLI context_crt_cb=0 debug_level=3" \
|
||||||
|
0 \
|
||||||
|
-s "Protocol is TLSv1.2" \
|
||||||
|
-s "Ciphersuite is TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256" \
|
||||||
|
-s "client hello v3, signature_algorithm ext: 6" \
|
||||||
|
-s "ECDHE curve: secp521r1" \
|
||||||
|
-S "error" \
|
||||||
|
-c "Verify requested for " \
|
||||||
|
-c "Use configuration-specific verification callback" \
|
||||||
|
-C "Use context-specific verification callback" \
|
||||||
|
-C "error"
|
||||||
|
|
||||||
run_test "Context-specific CRT verification callback" \
|
run_test "Context-specific CRT verification callback" \
|
||||||
"$P_SRV debug_level=3" \
|
"$P_SRV debug_level=3" \
|
||||||
"$P_CLI context_crt_cb=1 debug_level=3" \
|
"$P_CLI context_crt_cb=1 debug_level=3" \
|
||||||
|
@ -1018,6 +1032,7 @@ run_test "Context-specific CRT verification callback" \
|
||||||
-s "client hello v3, signature_algorithm ext: 6" \
|
-s "client hello v3, signature_algorithm ext: 6" \
|
||||||
-s "ECDHE curve: secp521r1" \
|
-s "ECDHE curve: secp521r1" \
|
||||||
-S "error" \
|
-S "error" \
|
||||||
|
-c "Verify requested for " \
|
||||||
-c "Use context-specific verification callback" \
|
-c "Use context-specific verification callback" \
|
||||||
-C "Use configuration-specific verification callback" \
|
-C "Use configuration-specific verification callback" \
|
||||||
-C "error"
|
-C "error"
|
||||||
|
|
Loading…
Reference in a new issue