diff options
Diffstat (limited to 'main/tcptls.c')
-rw-r--r-- | main/tcptls.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/tcptls.c b/main/tcptls.c index b838452e6..609023440 100644 --- a/main/tcptls.c +++ b/main/tcptls.c @@ -825,6 +825,8 @@ static int __ssl_setup(struct ast_tls_config *cfg, int client) } } +#ifdef HAVE_OPENSSL_EC + if (!ast_strlen_zero(cfg->pvtfile)) { BIO *bio = BIO_new_file(cfg->pvtfile, "r"); if (bio != NULL) { @@ -857,6 +859,8 @@ static int __ssl_setup(struct ast_tls_config *cfg, int client) } } +#endif /* #ifdef HAVE_OPENSSL_EC */ + ast_verb(2, "TLS/SSL certificate ok\n"); /* We should log which one that is ok. This message doesn't really make sense in production use */ return 1; #endif |