From: hno <> Date: Thu, 29 Dec 2005 10:16:33 +0000 (+0000) Subject: Fix digest helper split X-Git-Tag: SQUID_3_0_PRE4~409 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9e9de8a07763f243d9f3ca0e70620f851632b77;p=thirdparty%2Fsquid.git Fix digest helper split --- diff --git a/helpers/digest_auth/ldap/digest_pw_auth.c b/helpers/digest_auth/ldap/digest_pw_auth.c index 03a324f1f9..d971df48e8 100644 --- a/helpers/digest_auth/ldap/digest_pw_auth.c +++ b/helpers/digest_auth/ldap/digest_pw_auth.c @@ -33,16 +33,12 @@ #include "digest_common.h" #include "ldap_backend.h" #define PROGRAM_NAME "digest_ldap_auth" -char *backend; void GetHHA1(RequestData * requestData) { - if (strcmp(backend, "LDAP") == 0) - LDAPHHA1(requestData); - else if (strcmp(backend, "file") == 0) - TextHHA1(requestData); + LDAPHHA1(requestData); } static void diff --git a/helpers/digest_auth/password/digest_pw_auth.c b/helpers/digest_auth/password/digest_pw_auth.c index a2f23fc148..432d62321d 100644 --- a/helpers/digest_auth/password/digest_pw_auth.c +++ b/helpers/digest_auth/password/digest_pw_auth.c @@ -31,9 +31,8 @@ */ #include "digest_common.h" -#include "ldap_backend.h" +#include "text_backend.h" #define PROGRAM_NAME "digest_pw_auth" -char *backend; void @@ -47,10 +46,7 @@ usage() void GetHHA1(RequestData * requestData) { - if (strcmp(backend, "LDAP") == 0) - LDAPHHA1(requestData); - else if (strcmp(backend, "file") == 0) - TextHHA1(requestData); + TextHHA1(requestData); } static void