]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
NSS: make colons, commas and spaces valid separators in cipher list
authorSergey Markelov <sergey@solidstatenetworks.com>
Fri, 21 May 2021 23:44:15 +0000 (16:44 -0700)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 22 May 2021 22:11:30 +0000 (00:11 +0200)
Fixes #7110
Closes #7115

lib/vtls/nss.c

index 63f51fd799c18b05cf046dd667b997a9d4faeec0..2aa4bdaa134ff30c104fac461b4f54ccd9cc2c8b 100644 (file)
@@ -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';
     }