[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 117/256: curl_global_sslset: select backend by name
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 117/256: curl_global_sslset: select backend by name case insensitively |
Date: |
Fri, 06 Oct 2017 19:43:28 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit c290b8fb23f6b6fd8e06e22755d23a5e8e3623aa
Author: Daniel Stenberg <address@hidden>
AuthorDate: Thu Aug 31 11:54:51 2017 +0200
curl_global_sslset: select backend by name case insensitively
Closes #1849
---
docs/libcurl/curl_global_sslset.3 | 4 ++--
lib/vtls/vtls.c | 2 +-
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;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 94/256: configure: Handle "MultiSSL" specially When versioning symbols, (continued)
- [GNUnet-SVN] [gnurl] 94/256: configure: Handle "MultiSSL" specially When versioning symbols, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 57/256: tests: Make sure libtests & unittests call curl_global_cleanup(), gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 67/256: vtls: use the Curl_ssl struct to access all SSL backends' functionality, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 20/256: ssh: add the ability to enable compression (for SCP/SFTP), gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 79/256: urldata.h: move SSPI-specific #include to correct location, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 60/256: strtooff: fix build for systems with long long but no strtoll option, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 98/256: curl_global_init.3: mention curl_global_sslset(3), gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 101/256: HELP-US.md: spelling, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 64/256: vtls: make sure every _sha256sum()'s first arg is const, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 139/256: RELEASE-NOTES: fixed the function counter script, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 117/256: curl_global_sslset: select backend by name case insensitively,
gnunet <=
- [GNUnet-SVN] [gnurl] 110/256: cyassl: call it the "WolfSSL" backend, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 119/256: http: fix a memory leakage in checkrtspprefix()., gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 112/256: curl_global_sslset.3: show the struct and enum too, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 123/256: runtests.pl: allow <file[1-4]> tags in client section., gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 95/256: asyn-thread: Set errno to the proper value ENOMEM in OOM situation, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 114/256: strcase: corrected comment header for Curl_strcasecompare(), gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 151/256: openssl: use OpenSSL's default ciphers by default, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 156/256: runtests.pl: support attribute "nonewline" in part verify/upload., gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 66/256: vtls: declare Curl_ssl structs for every SSL backend, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 36/256: scripts/contri*sh: use "git log --use-mailmap", gnunet, 2017/10/06