summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-08-31 11:54:51 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-08-31 11:54:51 +0200
commit7d1a8ba572398eeac6990036e0fffaedaf33f55e (patch)
treee756cfa1a4bfbabb28bd0d4cd8ea829c5aa47c46
parent222e65fd783bec974b99345e0d618d4e627304de (diff)
downloadcurl-7d1a8ba572398eeac6990036e0fffaedaf33f55e.tar.gz
curl_global_sslset: select backend by name case insensitivelybagder/sslset-case-insensitive
-rw-r--r--docs/libcurl/curl_global_sslset.34
-rw-r--r--lib/vtls/vtls.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/libcurl/curl_global_sslset.3 b/docs/libcurl/curl_global_sslset.3
index 5e7a26359..b438f8ad0 100644
--- a/docs/libcurl/curl_global_sslset.3
+++ b/docs/libcurl/curl_global_sslset.3
@@ -56,8 +56,8 @@ must be called \fBbefore\fP \fIcurl_global_init(3)\fP.
The backend can be identified by the \fIid\fP
(e.g. \fBCURLSSLBACKEND_OPENSSL\fP). The backend can also be specified via the
-\fIname\fP parameter (passing -1 as \fIid\fP). If both \fIid\fP and \fIname\fP
-are specified, the \fIname\fP will be ignored.
+\fIname\fP parameter for a case insensitive match (passing -1 as \fIid\fP). If
+both \fIid\fP and \fIname\fP are specified, the \fIname\fP will be ignored.
If neither \fIid\fP nor \fPname\fP are specified, the function will fail with
CURLSSLSET_UNKNOWN_BACKEND and set the \fIavail\fP pointer to the
diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c
index 73ed7a31b..3647dff71 100644
--- a/lib/vtls/vtls.c
+++ b/lib/vtls/vtls.c
@@ -1272,7 +1272,7 @@ CURLsslset curl_global_sslset(curl_sslbackend id, const char *name,
for(i = 0; available_backends[i]; i++)
if(available_backends[i]->info.id == id ||
- (name && !strcmp(available_backends[i]->info.name, name))) {
+ (name && Curl_strcasecompare(available_backends[i]->info.name, name))) {
multissl_init(available_backends[i]);
return CURLSSLSET_OK;
}