mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-23 21:19:09 +00:00
tcptls.c: Don't use OpenSSL functions when no SSL support is present.
Change-Id: I68a85a7fcbdb282140ff333c6274b6763d5f82a3
This commit is contained in:
committed by
Richard Mudgett
parent
af420ba4ae
commit
5f712e82ac
@@ -791,6 +791,7 @@ void *ast_tcptls_server_root(void *data)
|
|||||||
return NULL;
|
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)
|
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);
|
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)
|
static int __ssl_setup(struct ast_tls_config *cfg, int client)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user