2
0
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:
Francis Dupont
2021-02-22 21:26:40 +01:00
parent 3201d88a88
commit 275cc4c047

View File

@@ -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_);
}