Run `tor_tls_cert_matches_key()` Test Suite with both OpenSSL and NSS.
commit33e1c2e6fd614f8cb42a6d5758d411d3f8d5411c
authorAlexander Færøy <ahf@torproject.org>
Tue, 31 Mar 2020 02:28:12 +0000 (31 02:28 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 6 Jul 2020 20:19:16 +0000 (6 16:19 -0400)
treef5c186bbf1813f864a969ce5953255e2cf0beefd
parent39830b6408f8a720ce71ccb6b853663c6e6047e9
Run `tor_tls_cert_matches_key()` Test Suite with both OpenSSL and NSS.

This patch lifts the `tor_tls_cert_matches_key()` tests out of the
OpenSSL specific TLS test suite and moves it into the generic TLS test
suite that is executed for both OpenSSL and NSS.

This patch is largely a code movement, but we had to rewrite parts of
the test to avoid using OpenSSL specific data-types (such as `X509 *`)
and replace it with the generic Tor abstraction type
(`tor_x509_cert_impl_t *`).

This patch is part of the fix for TROVE-2020-001.

See: https://bugs.torproject.org/33119
src/test/test_tortls.c
src/test/test_tortls_openssl.c