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
This commit is contained in:
Naveen Albert 2023-10-30 07:09:54 -04:00 committed by asterisk-org-access-app[bot]
parent f666dd0dd8
commit b94f8bb216
1 changed files with 1 additions and 1 deletions

View 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;
}