]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3473: erase last uses of obsolete auth_user_hash_pointer
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 10 Jan 2012 02:40:32 +0000 (19:40 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 10 Jan 2012 02:40:32 +0000 (19:40 -0700)
src/auth/digest/auth_digest.cc
src/auth/ntlm/auth_ntlm.cc
src/typedefs.h

index 2df4dbf9a897c2a62bdad0c14e6c600f61aa54a3..933ad0af66b55d4dd76869a7b80fb5955668be6c 100644 (file)
@@ -490,10 +490,10 @@ authDigestUserFindUsername(const char *username)
     AuthUser *auth_user;
     debugs(29, 9, HERE << "Looking for user '" << username << "'");
 
-    if (username && (usernamehash = static_cast < auth_user_hash_pointer * >(hash_lookup(proxy_auth_username_cache, username)))) {
+    if (username && (usernamehash = static_cast < AuthUserHashPointer * >(hash_lookup(proxy_auth_username_cache, username)))) {
         while ((usernamehash->user()->auth_type != AUTH_DIGEST) &&
                 (usernamehash->next))
-            usernamehash = static_cast < auth_user_hash_pointer * >(usernamehash->next);
+            usernamehash = static_cast < AuthUserHashPointer * >(usernamehash->next);
 
         auth_user = NULL;
 
@@ -515,7 +515,7 @@ authDigestUserShutdown(void)
     AuthUser *auth_user;
     hash_first(proxy_auth_username_cache);
 
-    while ((usernamehash = ((auth_user_hash_pointer *) hash_next(proxy_auth_username_cache)))) {
+    while ((usernamehash = ((AuthUserHashPointer *) hash_next(proxy_auth_username_cache)))) {
         auth_user = usernamehash->user();
 
         if (strcmp(auth_user->config->type(), "digest") == 0)
index 3fa5b46f78ee5eea710ff10afbde3facc5cc6ec5..33408b6d88197efb4807f9b833bcff3ab0d46a97 100644 (file)
@@ -393,7 +393,7 @@ authenticateNTLMHandleReply(void *data, void *lastserver, char *reply)
         debugs(29, 4, "AuthNTLMUserRequest::authenticate: authenticated user " << ntlm_user->username());
         /* see if this is an existing user with a different proxy_auth
          * string */
-        auth_user_hash_pointer *usernamehash = static_cast<AuthUserHashPointer *>(hash_lookup(proxy_auth_username_cache, ntlm_user->username()));
+        AuthUserHashPointer *usernamehash = static_cast<AuthUserHashPointer *>(hash_lookup(proxy_auth_username_cache, ntlm_user->username()));
         AuthUser *local_auth_user = ntlm_request->user();
         while (usernamehash && (usernamehash->user()->auth_type != AUTH_NTLM || strcmp(usernamehash->user()->username(), ntlm_user->username()) != 0))
             usernamehash = static_cast<AuthUserHashPointer *>(usernamehash->next);
index 9e204abe91a08ffeca953d5a8a3921c43e83afed..7e9098f57e00cc25a1cf6f7ffbd388daa594d266 100644 (file)
@@ -49,11 +49,6 @@ typedef struct {
 //UNUSED               typedef struct _acl_deny_info_list acl_deny_info_list;
 //UNUSED               typedef class AuthUser auth_user_t;
 
-
-/// \ingroup AuthAPI
-/// \deprecated Use AuthUserHashPointer instead.
-typedef struct AuthUserHashPointer auth_user_hash_pointer;
-
 /// \ingroup AuthAPI
 /// \deprecated Use AuthUserIP instead.
 typedef struct AuthUserIP auth_user_ip_t;