Skip to content
Snippets Groups Projects
Commit d6937672 authored by David Vossel's avatar David Vossel
Browse files

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
parent 0d4a8f64
No related branches found
No related tags found
No related merge requests found
...@@ -215,6 +215,11 @@ static void *handle_tcptls_connection(void *data) ...@@ -215,6 +215,11 @@ static void *handle_tcptls_connection(void *data)
if (!tcptls_session->f) { if (!tcptls_session->f) {
close(tcptls_session->fd); close(tcptls_session->fd);
ast_log(LOG_WARNING, "FILE * open failed!\n"); 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); ao2_ref(tcptls_session, -1);
return NULL; return NULL;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment