From 9fb05d5ea258ac5707b852a856608b00193169d3 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 15 Oct 2021 19:54:08 +0900 Subject: [PATCH] Fix compile error under mac os --- src/shrpx_connection.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shrpx_connection.cc b/src/shrpx_connection.cc index de1dfbfc..229e693c 100644 --- a/src/shrpx_connection.cc +++ b/src/shrpx_connection.cc @@ -397,7 +397,9 @@ int Connection::tls_handshake() { ERR_clear_error(); +#if OPENSSL_1_1_1_API || defined(OPENSSL_IS_BORINGSSL) auto &tlsconf = get_config()->tls; +#endif // OPENSSL_1_1_1_API || defined(OPENSSL_IS_BORINGSSL) #if OPENSSL_1_1_1_API && !defined(OPENSSL_IS_BORINGSSL) if (!tls.server_handshake || tls.early_data_finish) {