Change how we get the current cert in SSLVerifyCallback when using OpenSSL.
Change how we get the current cert in SSLVerifyCallback when using OpenSSL.

Use X509_STORE_CTX_get0_cert instead of SSL_get_peer_certificate.
In OpenSSL SSL_get_peer_certificate can only be used after the TLS session is established. Use X509_STORE_CTX_get0_cert instead.

https://bugs.chromium.org/p/webrtc/issues/detail?id=9272


Bug: webrtc:9272
Change-Id: I1f3288748c2ef8f50249713805bedffe59433961
Reviewed-on: https://webrtc-review.googlesource.com/78640
Reviewed-by: David Benjamin <348b1b6801801c3d890b2e1589a8e36441d09fdc@webrtc.org>
Reviewed-by: Tommi <74a97831ec830b6e3846c6faa50560947ae01c68@webrtc.org>
Commit-Queue: Jiawei Ou <3a2991cc3861171212385afd2b62e9cd29bd3f2a@fb.com>
Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#23376}
ShiftMediaProject/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc