nghttpd: Add verbose output when SSL/TLS session is reused

This commit is contained in:
Tatsuhiro Tsujikawa 2015-07-24 23:40:44 +09:00
parent afbb99ecf7
commit 6c8243f6d2
1 changed files with 6 additions and 0 deletions

View File

@ -571,6 +571,12 @@ int Http2Handler::tls_handshake() {
return -1;
}
if (sessions_->get_config()->verbose) {
if (SSL_session_reused(ssl_)) {
std::cerr << "SSL/TLS session reused" << std::endl;
}
}
return 0;
}