]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
tcptls: Fix notice when TLS is enabled but not supported.
authortraud <pabstraud@compuserve.com>
Wed, 1 Apr 2020 13:50:28 +0000 (15:50 +0200)
committerJoshua Colp <jcolp@sangoma.com>
Mon, 11 May 2020 10:47:49 +0000 (05:47 -0500)
ASTERISK-28797

Change-Id: Iab364a2c2519fd9d11d1c28293fda43d61b64c28

main/tcptls.c

index 8a2422ffa7a63689ed2e150d5b735a384636cc51..3c19933c4c09bcdec57b1eff03067ee41575d752 100644 (file)
@@ -846,7 +846,7 @@ static void *handle_tcptls_connection(void *data)
                        ast_sockaddr_stringify(&tcptls_session->remote_address));
 #ifndef DO_SSL
                if (tcptls_session->parent->tls_cfg) {
-                       ast_log(LOG_ERROR, "Attempted a TLS connection without OpenSSL support. This will not work!\n");
+                       ast_log(LOG_ERROR, "TLS client failed: Asterisk is compiled without OpenSSL support. Install OpenSSL development headers and rebuild Asterisk after running ./configure\n");
                }
 #endif
                ao2_ref(tcptls_session, -1);
@@ -939,7 +939,7 @@ static int __ssl_setup(struct ast_tls_config *cfg, int client)
 {
 #ifndef DO_SSL
        if (cfg->enabled) {
-               ast_log(LOG_NOTICE, "Configured without OpenSSL Development Headers");
+               ast_log(LOG_ERROR, "TLS server failed: Asterisk is compiled without OpenSSL support. Install OpenSSL development headers and rebuild Asterisk after running ./configure\n");
                cfg->enabled = 0;
        }
        return 0;