Joachim Reiersen aac19d3136 Fix SSLStreamAdapterTestDTLSCertChain when building with OpenSSL
These tests were failing when building WebRTC against OpenSSL instead of
BoringSSL. The reason is that OpenSSLStreamAdapter::SSLVerifyCallback in
the BoringSSL mode returns the full cert_chain by calling
SSL_get0_peer_certificates. This API does not exist in OpenSSL, instead
only a single certificate is fetched via X509_STORE_CTX_get0_cert.

ifdef out the parts of the test that assert on cert[1] and cert[2].

An alternative but more involved way to fix these tests could be to use
X509_STORE_CTX_get1_chain to fetch the full chain on the OpenSSL path.

Bug: webrtc:15153
Change-Id: I1ede6a3c5a63d4afd2de849f5e44fcd67592aa3c
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/304400
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#40022}
2023-05-09 11:03:39 +00:00
..
2023-04-21 06:17:42 +00:00
2023-04-21 06:17:42 +00:00
2023-04-21 06:17:42 +00:00
2023-04-21 06:17:42 +00:00
2023-04-21 06:17:42 +00:00
2023-04-21 06:17:42 +00:00
2023-04-21 06:17:42 +00:00
2019-07-08 13:45:15 +00:00
2023-04-21 06:17:42 +00:00
2023-04-21 06:17:42 +00:00
2023-04-21 06:17:42 +00:00
2022-08-19 07:11:06 +00:00
2019-07-08 13:45:15 +00:00
2022-06-07 07:14:06 +00:00
2019-07-08 13:45:15 +00:00
2023-04-21 06:17:42 +00:00
2023-04-21 06:17:42 +00:00
2022-09-30 12:01:28 +00:00
2022-01-28 15:13:45 +00:00
2023-04-21 06:17:42 +00:00
2023-04-21 06:17:42 +00:00
2021-08-31 14:27:49 +00:00
2019-07-08 13:45:15 +00:00
2023-04-21 06:17:42 +00:00
2023-04-21 06:17:42 +00:00
2019-11-26 14:05:20 +00:00
2019-07-08 13:45:15 +00:00
2022-10-08 08:38:36 +00:00
2023-04-21 06:17:42 +00:00
2021-09-21 15:17:26 +00:00
2023-04-21 06:17:42 +00:00
2023-04-21 06:17:42 +00:00
2019-07-08 13:45:15 +00:00
2023-04-21 06:17:42 +00:00
2021-10-13 19:26:10 +00:00
2019-07-08 13:45:15 +00:00