[asterisk-commits] dvossel: trunk r246980 - /trunk/main/tcptls.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 16 14:54:53 CST 2010


Author: dvossel
Date: Tue Feb 16 14:54:48 2010
New Revision: 246980

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=246980
Log:
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)


Modified:
    trunk/main/tcptls.c

Modified: trunk/main/tcptls.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/tcptls.c?view=diff&rev=246980&r1=246979&r2=246980
==============================================================================
--- trunk/main/tcptls.c (original)
+++ trunk/main/tcptls.c Tue Feb 16 14:54:48 2010
@@ -215,6 +215,11 @@
 	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;
 	}




More information about the asterisk-commits mailing list