Fix SSLCertificateIdentityVerifierTest for OpenSSL 1.1.1h
Summary: This test was written in a way that relied on an internal OpenSSL implementation detail -- that OpenSSL would invoke the `handshakeVer` callback on the root certificate. OpenSSL commit https://github.com/openssl/openssl/commit/e2590c3a162eb118c36b09c2168164283aa099b4, which is part of OpenSSL 1.1.1h, alters the control flow of the X509_verify routine such that the handshakeVer callback is no longer called on self-signed certificates in the trust store (aka CA certificates). The purpose of this test was to ensure that a forced failed verification on the end entity certificate would elicit a particular behavior. This diff adjusts the implementation to match the original intention and removes the reliance on implementation detail specifics. Differential Revision: D24183002 fbshipit-source-id: abc8337f76d3529966d276cae2337ad136456199
Showing
Please register or sign in to comment