Skip to content
Snippets Groups Projects
Commit 5f712e82 authored by Joerg Sonnenberger's avatar Joerg Sonnenberger Committed by Richard Mudgett
Browse files

tcptls.c: Don't use OpenSSL functions when no SSL support is present.

Change-Id: I68a85a7fcbdb282140ff333c6274b6763d5f82a3
parent af420ba4
No related branches found
No related tags found
No related merge requests found
......@@ -791,6 +791,7 @@ void *ast_tcptls_server_root(void *data)
return NULL;
}
#ifdef DO_SSL
static void __ssl_setup_certs(struct ast_tls_config *cfg, const size_t cert_file_len, const char *key_type_extension, const char *key_type)
{
char *cert_file = ast_strdupa(cfg->certfile);
......@@ -806,6 +807,7 @@ static void __ssl_setup_certs(struct ast_tls_config *cfg, const size_t cert_file
}
}
}
#endif
static int __ssl_setup(struct ast_tls_config *cfg, int client)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment