Stop calling SSL_get_session in SSLClientSocketImpl.
In TLS 1.3, sessions are post-handshake, so they must only come in the
callback. This change is a no-op in TLS 1.2.
Also update the key_exchange_info to use the new SSL-based APIs. Otherwise
calling GetSSLInfo during a renegotiation may have problems. The SSL-based
APIs internally also have the same problem, but we can fix that while we
can't change SSL_get_session's behavior.
BUG=630149
Review-Url: https://codereview.chromium.org/2189613003
Cr-Commit-Position: refs/heads/master@{#408125}
2 files changed