Fix compile error with libressl

This commit is contained in:
Tatsuhiro Tsujikawa 2021-09-21 18:59:22 +09:00
parent ca41f2faab
commit dbaa59908e
1 changed files with 2 additions and 0 deletions

View File

@ -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),