From: David Vossel Date: Tue, 16 Feb 2010 20:54:48 +0000 (+0000) Subject: warning message if openssl support is missing while attempting tls connection X-Git-Tag: 1.8.0-beta1~882 X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=commitdiff_plain;h=d69376722607a3ece61ed409401593adaf2e4759;ds=sidebyside warning message if openssl support is missing while attempting tls connection (closes issue #16673) Reported by: michaesc Patches: tls_error_msg.diff uploaded by dvossel (license 671) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@246980 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/tcptls.c b/main/tcptls.c index 05e59f6..a53cc30 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; }