From 35f284c2bda12dda2e43e04695e467afb7265861 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 29 Jan 2016 11:35:05 -0500 Subject: [PATCH] ircd: newconf: impose a deprecation warning for plaintext listeners --- ircd/newconf.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ircd/newconf.c b/ircd/newconf.c index 6ec62dc8..72732d26 100644 --- a/ircd/newconf.c +++ b/ircd/newconf.c @@ -862,6 +862,11 @@ conf_set_listen_port_both(void *data, int ssl) } if(listener_address == NULL) { + if (!ssl) + { + conf_report_error("listener '%s/%d': support for plaintext listeners is being deprecated and may be removed in a future release. " + "It is suggested that users be migrated to SSL/TLS connections.", listener_address, args->v.number); + } add_listener(args->v.number, listener_address, AF_INET, ssl, ssl || yy_defer_accept); #ifdef RB_IPV6 add_listener(args->v.number, listener_address, AF_INET6, ssl, ssl || yy_defer_accept); @@ -877,8 +882,13 @@ conf_set_listen_port_both(void *data, int ssl) #endif family = AF_INET; - add_listener(args->v.number, listener_address, family, ssl, ssl || yy_defer_accept); + if (!ssl) + { + conf_report_error("listener 'ANY/%d': support for plaintext listeners is being deprecated and may be removed in a future release. " + "It is suggested that users be migrated to SSL/TLS connections.", args->v.number); + } + add_listener(args->v.number, listener_address, family, ssl, ssl || yy_defer_accept); } }