Commit bad27123 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

auth_client.c: compare authentication scheme as case-insensive token

Thanks for Russell McConnachie for reporting this problem.

darcs-hash:20070919131923-65a35-f87664357b6970425cd25e073cd3d5d557b44454.gz
parent cfed05e8
......@@ -160,7 +160,7 @@ int ca_challenge(auth_client_t *ca,
if (!ca || !ch)
return -1;
if (strcmp(ca->ca_scheme, scheme))
if (strcasecmp(ca->ca_scheme, scheme))
return 0;
if (strcmp(ca->ca_realm, realm))
return 0;
......@@ -433,7 +433,7 @@ int auc_copy_credentials(auth_client_t **dst,
continue;
if (AUTH_CLIENT_IS_EXTENDED(ca) && ca->ca_clear)
continue;
if (!ca->ca_scheme[0] || strcmp(ca->ca_scheme, d->ca_scheme))
if (!ca->ca_scheme[0] || strcasecmp(ca->ca_scheme, d->ca_scheme))
continue;
if (!ca->ca_realm[0] || strcmp(ca->ca_realm, d->ca_realm))
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment