mirror of
https://github.com/curl/curl.git
synced 2026-04-18 01:41:42 +03:00
tlsauthtype: deal with the string case insensitively
When given a string as 'srp' it didn't work, but required 'SRP'. Starting now, the check disregards casing. Bug: http://curl.haxx.se/bug/view.cgi?id=3578418 Reported by: Jeff Connelly
This commit is contained in:
parent
d1c769877a
commit
74fe1b95fb
1 changed files with 1 additions and 1 deletions
|
|
@ -2589,7 +2589,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
|
|||
data->set.ssl.authtype = CURL_TLSAUTH_SRP; /* default to SRP */
|
||||
break;
|
||||
case CURLOPT_TLSAUTH_TYPE:
|
||||
if(strncmp((char *)va_arg(param, char *), "SRP", strlen("SRP")) == 0)
|
||||
if(strnequal((char *)va_arg(param, char *), "SRP", strlen("SRP")))
|
||||
data->set.ssl.authtype = CURL_TLSAUTH_SRP;
|
||||
else
|
||||
data->set.ssl.authtype = CURL_TLSAUTH_NONE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue