dect
/
asterisk
Archived
13
0
Fork 0

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: http://svn.digium.com/svn/asterisk/trunk@246980 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
dvossel 2010-02-16 20:54:48 +00:00
parent d3b43c0650
commit f7c1c60e23
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}