From b94f8bb21678850eae5a28206be4ff1b32d8ba06 Mon Sep 17 00:00:00 2001 From: Naveen Albert Date: Mon, 30 Oct 2023 07:09:54 -0400 Subject: [PATCH] res_pjsip: Include cipher limit in config error message. 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 --- res/res_pjsip/config_transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_pjsip/config_transport.c b/res/res_pjsip/config_transport.c index f4f6efc5cd..07b60a9a70 100644 --- a/res/res_pjsip/config_transport.c +++ b/res/res_pjsip/config_transport.c @@ -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; }