mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
tcptls: Fix notice when TLS is enabled but not supported.
ASTERISK-28797 Change-Id: Iab364a2c2519fd9d11d1c28293fda43d61b64c28
This commit is contained in:
committed by
Friendly Automation
parent
6649b13b91
commit
023d73a0e7
@@ -263,7 +263,7 @@ static void *handle_tcptls_connection(void *data)
|
|||||||
X509_free(peer);
|
X509_free(peer);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
ast_log(LOG_ERROR, "Attempted a TLS connection without OpenSSL support. This will not work!\n");
|
ast_log(LOG_ERROR, "TLS client failed: Asterisk is compiled without OpenSSL support. Install OpenSSL development headers and rebuild Asterisk after running ./configure\n");
|
||||||
ast_tcptls_close_session_file(tcptls_session);
|
ast_tcptls_close_session_file(tcptls_session);
|
||||||
ao2_ref(tcptls_session, -1);
|
ao2_ref(tcptls_session, -1);
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -383,7 +383,7 @@ static int __ssl_setup(struct ast_tls_config *cfg, int client)
|
|||||||
{
|
{
|
||||||
#ifndef DO_SSL
|
#ifndef DO_SSL
|
||||||
if (cfg->enabled) {
|
if (cfg->enabled) {
|
||||||
ast_log(LOG_NOTICE, "Configured without OpenSSL Development Headers");
|
ast_log(LOG_ERROR, "TLS server failed: Asterisk is compiled without OpenSSL support. Install OpenSSL development headers and rebuild Asterisk after running ./configure\n");
|
||||||
cfg->enabled = 0;
|
cfg->enabled = 0;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user