From 657d94b99283f3ec810d87b05b5f7bbc1ca50768 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 21 Sep 2021 18:59:22 +0900 Subject: [PATCH] Fix compile error with libressl --- src/h2load.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/h2load.cc b/src/h2load.cc index ad37144e..e7f368c8 100644 --- a/src/h2load.cc +++ b/src/h2load.cc @@ -81,6 +81,7 @@ bool recorded(const std::chrono::steady_clock::time_point &t) { } } // namespace +#if OPENSSL_1_1_1_API namespace { std::ofstream keylog_file; 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(); } } // namespace +#endif // OPENSSL_1_1_1_API Config::Config() : ciphers(tls::DEFAULT_CIPHER_LIST),