[Asterisk-code-review] pjsip: Increase maximum number of ciphers to PJ SSL SOCK MAX... (asterisk[13])

Sean Bright asteriskteam at digium.com
Wed May 2 07:43:41 CDT 2018


Sean Bright has uploaded this change for review. ( https://gerrit.asterisk.org/8906


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/06/8906/1

diff --git a/res/res_pjsip/config_transport.c b/res/res_pjsip/config_transport.c
index 959fb19..478f242 100644
--- a/res/res_pjsip/config_transport.c
+++ b/res/res_pjsip/config_transport.c
@@ -976,7 +976,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;
@@ -1105,7 +1105,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/8906
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iea620f03915a1b873e79743154255c3148a514e7
Gerrit-Change-Number: 8906
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/e8b02e2b/attachment.html>


More information about the asterisk-code-review mailing list