aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_channel.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-10-09 10:29:29 -0400
committerJack Lloyd <[email protected]>2017-10-09 10:29:29 -0400
commit03292e638bede9b386f07e02e8bbdefd0fef53dd (patch)
treebfce51d5b2637ebe58ecbad52e2602c062750dc2 /src/lib/tls/tls_channel.cpp
parent95185297aa91edf34c68fd56f7f095df16a7197f (diff)
Add a special Compat_Callbacks constructor to silence deprecation warnings.
That way we avoid the warning internally even in amalgamation mode. GH #1243
Diffstat (limited to 'src/lib/tls/tls_channel.cpp')
-rw-r--r--src/lib/tls/tls_channel.cpp4
1 files changed, 3 insertions, 1 deletions
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),