From 6c8243f6d2e1766a80df6fe72c378dd8a461aa9d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 24 Jul 2015 23:40:44 +0900 Subject: [PATCH] nghttpd: Add verbose output when SSL/TLS session is reused --- src/HttpServer.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/HttpServer.cc b/src/HttpServer.cc index 5241aec6..01624d33 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -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; }