Skip to content

Commit b94f8bb

Browse files
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
1 parent f666dd0 commit b94f8bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

res/res_pjsip/config_transport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ static int transport_tls_cipher_handler(const struct aco_option *opt, struct ast
13651365
continue;
13661366
}
13671367
if (ARRAY_LEN(state->ciphers) <= state->tls.ciphers_num) {
1368-
ast_log(LOG_ERROR, "Too many ciphers specified\n");
1368+
ast_log(LOG_ERROR, "Too many ciphers specified (maximum allowed is %d)\n", SIP_TLS_MAX_CIPHERS);
13691369
res = -1;
13701370
break;
13711371
}

0 commit comments

Comments
 (0)