fix compilation with OPENSSL_LIBRARY=0

This commit is contained in:
Timur A. Fatkhullin
2024-12-12 21:34:12 +03:00
parent 4e133de5b2
commit e4fd86a6d4
2 changed files with 6 additions and 3 deletions

View File

@@ -159,7 +159,8 @@ public:
typedef std::function<int(const std::string& serial, const std::vector<unsigned char>& fingerprint, int depth)>
cert_comp_func_t;
#else
using session_level_socket_t = socket_t;
// using session_level_socket_t = socket_t;
using session_level_socket_t = std::nullptr_t;
#endif
@@ -830,8 +831,8 @@ protected:
asio::socket_base::shutdown_type _shutdownType = asio::socket_base::shutdown_both;
#ifdef USE_OPENSSL_WITH_ASIO
session_level_socket_t _sessSocket;
#ifdef USE_OPENSSL_WITH_ASIO
std::conditional_t<isTLS, asio::ssl::context, std::nullptr_t> _tlsContext;
asio::ssl::verify_mode _tlsPeerVerifyMode;
cert_comp_func_t _tlsCertCompFunc;