From 96adbf5cdb6f36665af2583083454e4ae38292f0 Mon Sep 17 00:00:00 2001 From: Sergey Markelov Date: Fri, 21 May 2021 16:44:15 -0700 Subject: [PATCH] NSS: make colons, commas and spaces valid separators in cipher list Fixes #7110 Closes #7115 --- lib/vtls/nss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c index 63f51fd799..2aa4bdaa13 100644 --- a/lib/vtls/nss.c +++ b/lib/vtls/nss.c @@ -337,7 +337,7 @@ static SECStatus set_ciphers(struct Curl_easy *data, PRFileDesc * model, while((*cipher) && (ISSPACE(*cipher))) ++cipher; - cipher_list = strchr(cipher, ','); + cipher_list = strpbrk(cipher, ":, "); if(cipher_list) { *cipher_list++ = '\0'; }