mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-05 08:25:16 +00:00
[#1661] Code cleanup
This commit is contained in:
@@ -45,12 +45,6 @@ TlsContext::TlsContext(TlsRole role)
|
||||
|
||||
boost::asio::ssl::context&
|
||||
TlsContext::getContext() {
|
||||
auto ctx = context_.native_handle();
|
||||
#if defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER >= 0x10100000L)
|
||||
::SSL_CTX_up_ref(ctx);
|
||||
#else
|
||||
CRYPTO_add(&ctx->references, 1, CRYPTO_LOCK_SSL_CTX);
|
||||
#endif
|
||||
return (context_);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user