Commit dbaa5990 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Fix compile error with libressl

parent ca41f2fa
...@@ -81,6 +81,7 @@ bool recorded(const std::chrono::steady_clock::time_point &t) { ...@@ -81,6 +81,7 @@ bool recorded(const std::chrono::steady_clock::time_point &t) {
} }
} // namespace } // namespace
#if OPENSSL_1_1_1_API
namespace { namespace {
std::ofstream keylog_file; std::ofstream keylog_file;
void keylog_callback(const SSL *ssl, const char *line) { void keylog_callback(const SSL *ssl, const char *line) {
...@@ -89,6 +90,7 @@ void keylog_callback(const SSL *ssl, const char *line) { ...@@ -89,6 +90,7 @@ void keylog_callback(const SSL *ssl, const char *line) {
keylog_file.flush(); keylog_file.flush();
} }
} // namespace } // namespace
#endif // OPENSSL_1_1_1_API
Config::Config() Config::Config()
: ciphers(tls::DEFAULT_CIPHER_LIST), : ciphers(tls::DEFAULT_CIPHER_LIST),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment