summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSergey Markelov <sergey@solidstatenetworks.com>2021-05-21 16:44:15 -0700
committerDaniel Stenberg <daniel@haxx.se>2021-05-23 00:11:30 +0200
commit96adbf5cdb6f36665af2583083454e4ae38292f0 (patch)
treef436268a56d7c77f30c208dca72351c74e6260ff /lib
parente61d8e36d261b2caa915543d0593faa576164cb1 (diff)
downloadcurl-96adbf5cdb6f36665af2583083454e4ae38292f0.tar.gz
NSS: make colons, commas and spaces valid separators in cipher list
Fixes #7110 Closes #7115
Diffstat (limited to 'lib')
-rw-r--r--lib/vtls/nss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c
index 63f51fd79..2aa4bdaa1 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';
}