summaryrefslogtreecommitdiff
path: root/lib/security.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-10-23 01:20:57 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-10-23 01:20:57 +0000
commitbab5183820dbd2e0ea9ee4f0442844291d05c90e (patch)
tree3d6ff5612852ebe99afe0d83d2419ef1909d7a5a /lib/security.c
parent0abaf2246777df3b06abc3430315d704c808ef4e (diff)
downloadcurl-bab5183820dbd2e0ea9ee4f0442844291d05c90e.tar.gz
Created Curl_raw_nequal() which does a C-locale string case comparison.
Changed checkprefix() to use it and those instances of strnequal() that compare host names or other protocol strings that are defined to be independent of case in the C locale. This should fix a few more Turkish locale problems.
Diffstat (limited to 'lib/security.c')
-rw-r--r--lib/security.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/security.c b/lib/security.c
index bec751045..01143938a 100644
--- a/lib/security.c
+++ b/lib/security.c
@@ -85,7 +85,7 @@ name_to_level(const char *name)
{
int i;
for(i = 0; i < (int)sizeof(level_names)/(int)sizeof(level_names[0]); i++)
- if(curl_strnequal(level_names[i].name, name, strlen(name)))
+ if(checkprefix(name, level_names[i].name))
return level_names[i].level;
return (enum protection_level)-1;
}