You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2023/03/13 09:25:46 UTC
svn commit: r1908339 - /httpd/httpd/trunk/modules/ssl/ssl_engine_vars.c
Author: rpluem
Date: Mon Mar 13 09:25:46 2023
New Revision: 1908339
URL: http://svn.apache.org/viewvc?rev=1908339&view=rev
Log:
* Favour HUGE_STRING_LEN * 2 over 1024 * 16
Modified:
httpd/httpd/trunk/modules/ssl/ssl_engine_vars.c
Modified: httpd/httpd/trunk/modules/ssl/ssl_engine_vars.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ssl/ssl_engine_vars.c?rev=1908339&r1=1908338&r2=1908339&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ssl/ssl_engine_vars.c (original)
+++ httpd/httpd/trunk/modules/ssl/ssl_engine_vars.c Mon Mar 13 09:25:46 2023
@@ -507,9 +507,9 @@ static const char *ssl_var_lookup_ssl(ap
result = ssl_var_lookup_ssl_compress_meth(ssl);
}
else if (ssl != NULL && strcEQ(var, "SHARED_CIPHERS")) {
- char buf[ 1024 * 16 ];
- if (SSL_get_shared_ciphers(ssl,buf,sizeof(buf)))
- result = apr_pstrdup(p,buf);
+ char buf[HUGE_STRING_LEN * 2];
+ if (SSL_get_shared_ciphers(ssl, buf, sizeof(buf)))
+ result = apr_pstrdup(p, buf);
}
#ifdef HAVE_TLSEXT
else if (ssl != NULL && strcEQ(var, "TLS_SNI")) {