Rewrite test_tortls_cert_matches_key()
commit85a87923440361bc5a3b82c6e874192ebe08b8d4
authorNick Mathewson <nickm@torproject.org>
Mon, 20 Aug 2018 21:43:41 +0000 (20 17:43 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 20 Aug 2018 21:43:41 +0000 (20 17:43 -0400)
treeb3cf0615d06af3ec71c2fe028bf59a1cd35ab8ad
parentc1f476a3d59a66e39302b51f6f937aabf0b3a0d5
Rewrite test_tortls_cert_matches_key()

Unlike the old test, this test no will no longer mess around with
the forbidden internals of any openssl data structures.

Additionally, it verifies several other behaviors of
tor_tls_cert_matches_key() that we had wanted to verify, such as
the possibility of the certificate's key not matching.

Fixes bug 27226; bugfix on 0.2.5.1-alpha.
changes/bug27226 [new file with mode: 0644]
src/test/test_tortls.c