Browse Source

curl_global_sslset: select backend by name case insensitively

Closes #1849
master
Daniel Stenberg 4 years ago
parent
commit
c290b8fb23
No known key found for this signature in database GPG Key ID: 5CC908FDB71E12C2
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      docs/libcurl/curl_global_sslset.3
  2. +1
    -1
      lib/vtls/vtls.c

+ 2
- 2
docs/libcurl/curl_global_sslset.3 View File

@ -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


+ 1
- 1
lib/vtls/vtls.c View File

@ -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;
}


Loading…
Cancel
Save