[Asterisk-code-review] pjsip: Increase maximum number of ciphers to PJ SSL SOCK MAX... (asterisk[master])
Sean Bright
asteriskteam at digium.com
Wed May 2 07:44:50 CDT 2018
Sean Bright has uploaded this change for review. ( https://gerrit.asterisk.org/8908
Change subject: pjsip: Increase maximum number of ciphers to PJ_SSL_SOCK_MAX_CIPHERS (256)
......................................................................
pjsip: Increase maximum number of ciphers to PJ_SSL_SOCK_MAX_CIPHERS (256)
Re: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=897412
Reported by: Tzafrir Cohen
Change-Id: Iea620f03915a1b873e79743154255c3148a514e7
---
M res/res_pjsip/config_transport.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/08/8908/1
diff --git a/res/res_pjsip/config_transport.c b/res/res_pjsip/config_transport.c
index dd7c704..97e6365 100644
--- a/res/res_pjsip/config_transport.c
+++ b/res/res_pjsip/config_transport.c
@@ -977,7 +977,7 @@
/*! \brief Helper function which turns a cipher name into an identifier */
static pj_ssl_cipher cipher_name_to_id(const char *name)
{
- pj_ssl_cipher ciphers[100];
+ pj_ssl_cipher ciphers[PJ_SSL_SOCK_MAX_CIPHERS];
pj_ssl_cipher id = 0;
unsigned int cipher_num = PJ_ARRAY_SIZE(ciphers);
int pos;
@@ -1106,7 +1106,7 @@
static char *handle_pjsip_list_ciphers(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
- pj_ssl_cipher ciphers[100];
+ pj_ssl_cipher ciphers[PJ_SSL_SOCK_MAX_CIPHERS];
unsigned int cipher_num = PJ_ARRAY_SIZE(ciphers);
char *buf;
--
To view, visit https://gerrit.asterisk.org/8908
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iea620f03915a1b873e79743154255c3148a514e7
Gerrit-Change-Number: 8908
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180502/9d1b1eb8/attachment.html>
More information about the asterisk-code-review
mailing list