diff --git a/main/tcptls.c b/main/tcptls.c index 05e59f6002f150aea29970b5726878e71cfb64bf..a53cc30dc7075d610d6fda54b522f8cf13d739f1 100644 --- a/main/tcptls.c +++ b/main/tcptls.c @@ -215,6 +215,11 @@ static void *handle_tcptls_connection(void *data) if (!tcptls_session->f) { close(tcptls_session->fd); ast_log(LOG_WARNING, "FILE * open failed!\n"); +#ifndef DO_SSL + if (tcptls_session->parent->tls_cfg) { + ast_log(LOG_WARNING, "Attempted a TLS connection without openssl support. This will not work!\n"); + } +#endif ao2_ref(tcptls_session, -1); return NULL; }