mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 08:11:21 +00:00
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
(cherry picked from commit 8d9d0d3738)
This commit is contained in:
committed by
Asterisk Development Team
parent
0b4427d621
commit
120dbba2b3
@@ -1365,7 +1365,7 @@ static int transport_tls_cipher_handler(const struct aco_option *opt, struct ast
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (ARRAY_LEN(state->ciphers) <= state->tls.ciphers_num) {
|
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;
|
res = -1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user