Merge "tcptls: Print notice when TLS is enabled but not configured." into 15

This commit is contained in:
Jenkins2
2017-11-07 09:45:22 -06:00
committed by Gerrit Code Review

View File

@@ -316,7 +316,10 @@ static void __ssl_setup_certs(struct ast_tls_config *cfg, const size_t cert_file
static int __ssl_setup(struct ast_tls_config *cfg, int client) static int __ssl_setup(struct ast_tls_config *cfg, int client)
{ {
#ifndef DO_SSL #ifndef DO_SSL
cfg->enabled = 0; if (cfg->enabled) {
ast_log(LOG_NOTICE, "Configured without OpenSSL Development Headers");
cfg->enabled = 0;
}
return 0; return 0;
#else #else
int disable_ssl = 0; int disable_ssl = 0;