+18
−0
+116
−0
test/tls_sigalg_binding_test.cpp
0 → 100644
+120
−0
test/tls_verify_ecdsa_p384_test.cpp
0 → 100644
+115
−0
Loading
- tls_sigalg_binding_test (new, no network/openssl needed): unit tests for
tls::sigAlgMatchesLeafKey() and resetTLS()'s peer-state clearing --
covers the HIGH finding directly, including the exact "RSA leaf this
connection, stale P-384 curve from a previous one" combination.
- tls_verify_ecdsa_p384_test (new): tls::verify_ecdsa_sha384 must reject a
flipped signature bit and a valid signature from a different P-384 key.
- cert_verify_chain_test: three new scenarios --
(g) pathLenConstraint still enforced on an intermediate when the root
itself carries no pathLenConstraint at all,
(h) a CA:TRUE intermediate asserting only cRLSign (not keyCertSign) is
rejected,
(i) a trust-anchor root without basicConstraints/keyUsage at all is
still accepted (the loosened Befund-5 rule).
- gen_cert_chain_fixtures.sh: fixtures for the above (root2/intA/intB,
intermediate_crlsign_only, root_no_constraints), plus a fixed message
signed by leaf384's and root384's P-384 keys for the verify_ecdsa_sha384
tests.
Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com>