diff options
author | Daniel Stenberg <daniel@haxx.se> | 2012-10-23 23:12:58 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-10-23 23:12:58 +0200 |
commit | 74fe1b95fb44053fdbef4b1eb9f550a3da332eda (patch) | |
tree | b60b883f1e99bbe019b6fbf832db5406388251fb | |
parent | d1c769877a3eab3c88b5f3f55501d3c505e247c8 (diff) | |
download | curl-74fe1b95fb44053fdbef4b1eb9f550a3da332eda.tar.gz |
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
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 1 insertions, 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; |