nghttpx: Add detailed TLS connection logging
This commit is contained in:
parent
b1b8308555
commit
6a8749873f
|
@ -505,8 +505,14 @@ int Connection::write_tls_pending_handshake() {
|
||||||
|
|
||||||
if (LOG_ENABLED(INFO)) {
|
if (LOG_ENABLED(INFO)) {
|
||||||
LOG(INFO) << "SSL/TLS handshake completed";
|
LOG(INFO) << "SSL/TLS handshake completed";
|
||||||
if (SSL_session_reused(tls.ssl)) {
|
nghttp2::ssl::TLSSessionInfo tls_info{};
|
||||||
LOG(INFO) << "SSL/TLS session reused";
|
if (nghttp2::ssl::get_tls_session_info(&tls_info, tls.ssl)) {
|
||||||
|
LOG(INFO) << "cipher=" << tls_info.cipher
|
||||||
|
<< " protocol=" << tls_info.protocol
|
||||||
|
<< " resumption=" << (tls_info.session_reused ? "yes" : "no")
|
||||||
|
<< " session_id="
|
||||||
|
<< util::format_hex(tls_info.session_id,
|
||||||
|
tls_info.session_id_length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue