]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip: Include cipher limit in config error message.
authorNaveen Albert <asterisk@phreaknet.org>
Mon, 30 Oct 2023 11:09:54 +0000 (07:09 -0400)
committerAsterisk Development Team <asteriskteam@digium.com>
Fri, 12 Jan 2024 18:32:12 +0000 (18:32 +0000)
If too many ciphers are specified in the PJSIP config,
include the maximum number of ciphers that may be
specified in the user-facing error message.

Resolves: #396
(cherry picked from commit d4185ca025961eda0426ff7e5eae66ec963efc59)

res/res_pjsip/config_transport.c

index f4f6efc5cd6167bb660d5008c982659650a65efd..07b60a9a7027e19bfd15375982de84b962cbe1a7 100644 (file)
@@ -1365,7 +1365,7 @@ static int transport_tls_cipher_handler(const struct aco_option *opt, struct ast
                        continue;
                }
                if (ARRAY_LEN(state->ciphers) <= state->tls.ciphers_num) {
-                       ast_log(LOG_ERROR, "Too many ciphers specified\n");
+                       ast_log(LOG_ERROR, "Too many ciphers specified (maximum allowed is %d)\n", SIP_TLS_MAX_CIPHERS);
                        res = -1;
                        break;
                }