mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
mbedtls_ssl_conf_alpn_protocols: declare list elements as const
This reflects the fact that the library will not modify the list, and allows the list to be read from a const buffer. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@ -869,7 +869,7 @@ static int ssl_parse_alpn_ext(mbedtls_ssl_context *ssl,
|
||||
const unsigned char *buf, size_t len)
|
||||
{
|
||||
size_t list_len, name_len;
|
||||
const char **p;
|
||||
const char *const *p;
|
||||
|
||||
/* If we didn't send it, the server shouldn't send it */
|
||||
if (ssl->conf->alpn_list == NULL) {
|
||||
|
Reference in New Issue
Block a user