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

certified/13.21
Joshua Colp 8 years ago committed by Gerrit Code Review
commit 5d19dc2cb1

@ -874,7 +874,10 @@ void *ast_tcptls_server_root(void *data)
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
if (cfg->enabled) {
ast_log(LOG_NOTICE, "Configured without OpenSSL Development Headers");
cfg->enabled = 0; cfg->enabled = 0;
}
return 0; return 0;
#else #else
int disable_ssl = 0; int disable_ssl = 0;

Loading…
Cancel
Save