Skip to content

Commit

Permalink
Fix compile error on OpenBSD which has no SSL_OP_NO_RENEGOTIATION
Browse files Browse the repository at this point in the history
  • Loading branch information
Al2Klimov committed Dec 18, 2023
1 parent 7ce9457 commit a73b724
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/base/tlsutility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ static void InitSslContext(const Shared<boost::asio::ssl::context>::Ptr& context
}
});
#else /* OPENSSL_VERSION_NUMBER < 0x10100000L */
# ifdef SSL_OP_NO_RENEGOTIATION
flags |= SSL_OP_NO_RENEGOTIATION;
# endif /* SSL_OP_NO_RENEGOTIATION */
#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */

SSL_CTX_set_options(sslContext, flags);
Expand Down

0 comments on commit a73b724

Please sign in to comment.