Fix compile error under mac os

This commit is contained in:
Tatsuhiro Tsujikawa 2021-10-15 19:54:08 +09:00
parent 3742acaf39
commit 9fb05d5ea2
1 changed files with 2 additions and 0 deletions

View File

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