From 03292e638bede9b386f07e02e8bbdefd0fef53dd Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 9 Oct 2017 10:29:29 -0400 Subject: Add a special Compat_Callbacks constructor to silence deprecation warnings. That way we avoid the warning internally even in amalgamation mode. GH #1243 --- src/lib/tls/tls_channel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/tls/tls_channel.cpp') diff --git a/src/lib/tls/tls_channel.cpp b/src/lib/tls/tls_channel.cpp index 78f681765..143453ba3 100644 --- a/src/lib/tls/tls_channel.cpp +++ b/src/lib/tls/tls_channel.cpp @@ -49,7 +49,9 @@ Channel::Channel(output_fn out, bool is_datagram, size_t io_buf_sz) : m_is_datagram(is_datagram), - m_compat_callbacks(new Compat_Callbacks(out, app_data_cb, alert_cb, hs_cb, hs_msg_cb)), + m_compat_callbacks(new Compat_Callbacks( + Compat_Callbacks::SILENCE_DEPRECATION_WARNING::PLEASE, + out, app_data_cb, alert_cb, hs_cb, hs_msg_cb)), m_callbacks(*m_compat_callbacks.get()), m_session_manager(session_manager), m_policy(policy), -- cgit v1.2.3