aboutsummaryrefslogtreecommitdiff
path: root/lib/sslgen.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/sslgen.c
parent0abaf2246777df3b06abc3430315d704c808ef4e (diff)
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/sslgen.c')
-rw-r--r--lib/sslgen.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/sslgen.c b/lib/sslgen.c
index eee46b912..1bfeda713 100644
--- a/lib/sslgen.c
+++ b/lib/sslgen.c
@@ -64,8 +64,6 @@
/* The last #include file should be: */
#include "memdebug.h"
-static bool safe_strequal(char* str1, char* str2);
-
static bool safe_strequal(char* str1, char* str2)
{
if(str1 && str2)
@@ -228,7 +226,7 @@ int Curl_ssl_getsessionid(struct connectdata *conn,
if(!check->sessionid)
/* not session ID means blank entry */
continue;
- if(curl_strequal(conn->host.name, check->name) &&
+ if(Curl_raw_equal(conn->host.name, check->name) &&
(conn->remote_port == check->remote_port) &&
Curl_ssl_config_matches(&conn->ssl_config, &check->ssl_config)) {
/* yes, we have a session ID! */